Mr_worm
(Mr worm)
October 23, 2013, 11:45am
1
I have an old site I wish to update…
it consisted of several pages, however I have consolidated it into 1 page (index.php)
With regards to a 301 redirect… I want to move users from the old page;
http://www.example.com/aboutus.php
to the new one;
http://www.example.com/
Whats the magical .htaccess line???;
redirect 301 /aboutus /???
Worm
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Whats the magical .htaccess line???;
Google probably? Found this - am not sure if it’s helpful:
Quickly generate an htaccess file for many functions including www rewrite, hotlink prevention, custom error pages, caching, and redirects.
Try and report back.
Cheers
Thomas
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Tim_Plumb
(Tim Plumb)
October 23, 2013, 12:14pm
3
I wrote this article over on the Softpress KnowledgeBase a while ago that should cover what you want to do;
An .htaccess file is nothing more than a simple text file but one that offers a vast amount of power for users running their web sites on an Apache server. These tiny files are the hidden, and generally unsung, heroes of web designers, offering them...
I think it would be nice if Freeway knew the links had changed and offered to update the .htaccess file for you but it isn’t that hard to do manually.
Regards,
Tim.
On 23 Oct 2013, at 12:45, Mr worm wrote:
Whats the magical .htaccess line???;
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Mr_worm
(Mr worm)
October 23, 2013, 1:38pm
4
Thank you Thomas, thats a really cool site!!! Very helpful as always
Tim, I read this earlier… however it does not illude as to how to redirect http://www.example.com/aboutus.php back to http://www.example.com
As I mentioned the site is now only 1 page, thus every old page needs to re-direct to the new single index page.
whem I try using Redirect 301 www.example.com/aboutus.php /www.example.com/index.php
I redirects to http://www.example.com/index (which doesnt work)???
and not…
http://www.example.com
How can I achieve this as neither seen to explain this?
Many thanks Tim
Worm
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Caleb_G1
(Caleb G)
October 23, 2013, 3:59pm
5
Chris,
Give this a try:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . index.html [L,R=301]
(Source )
That should redirect any requests to a file that no longer exists to index.html
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Mr_worm
(Mr worm)
October 24, 2013, 8:44am
6
Hi Caleb, unfortunately that didnt work???
I’m confused, I thought this would be a pretty easy process, however its proving to be quite a chore…
I simply want all old/previous links to now redirect to 1 page:
www.example.com
thus
www.example.com/aboutus.php
www.example.com/contact.php
so on…
will redirect to:
www.example.com
Many thanks
Worm
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
add this to a .htaccess file…
Redirect 301 /myoldpage.html http://example.com/mynewpage.html
David Owen { Freeway Friendly Web hosting and Domains }
http://www.ineedwebhosting.co.uk | http://www.PrintlineAdvertising.co.uk
On 24 Oct 2013, at 09:44, “Mr worm” email@hidden wrote:
Hi Caleb, unfortunately that didnt work???
I’m confused, I thought this would be a pretty easy process, however its proving to be quite a chore…
I simply want all old/previous links to now redirect to 1 page:
www.example.com
thus
www.example.com/aboutus.php
www.example.com/contact.php
so on…
will redirect to:
www.example.com
Many thanks
Worm
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
Mr_worm
(Mr worm)
October 24, 2013, 4:27pm
8
David, that worked at treat!!!
Thank you so much
Worm
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options