301 .htaccess Redirect Trick
September 15th, 2006 Filed in: Tricks & Tips Jump to commentsAfter the implementation of WordPress, you should notice some of the URLs and paths on this site are different. To prevent getting 404 File Not Found error (traffic coming from links, bookmarks and search engines), I used this .htaccess 301 redirect trick I found. This way is better than meta refresh or redirect tag because there is no delay as the browser reads the .htaccess file first. However, it is only available to Linux server (doen’t work on Window server). Here is the trick.
Go to your site’s root folder, download the .htaccess file to your local computer and edit it with a plain-text editor (Notepad). If you are using FTP Client software and you don’t see any .htaccess file on your server, double check your setting and make sure you have turn on invisible / system files.
To redirect certain page(s):
Redirect 301 /oldpage.html http://www.yoursite.com/newpage.html
Redirect 301 /oldpage2.html http://www.yoursite.com/folder/
To redirect entire site:
Redirect 301 / http://www.new-site.com/


December 3rd, 2008 at 8:38 am
Fantastic you cut out all the rubbish that normally surrounds 301 redirects. thanks.
November 29th, 2008 at 11:01 pm
Great tips and it works. Yay!
November 29th, 2008 at 2:45 am
I m trying to redirect a link(contains some parameters along with) in my site. but its not taking ir properly.
tell me, if in old and new URLs no. of parameter should be equal ?
November 28th, 2008 at 2:54 pm
Yes works great thanks for the info.
November 24th, 2008 at 7:29 pm
Yes it does work on my site as well.
It does work I use it on my site www.canvastown.com
November 21st, 2008 at 4:18 am
Hello I was trying to redirect web 404 back to my home page http://www.pricelessweddings.com.au
November 15th, 2008 at 11:26 am
It does work I use it on my site http://www.banksyunmasked.co.uk
Make sure you put the file in the right place or you will get an internal server error.
November 10th, 2008 at 11:18 am
Works very well - my indexed content deprecates appropriately, thanks! + Marshall Reeves
November 3rd, 2008 at 5:18 pm
I tried on my site and did it. Thanks for the code.
October 31st, 2008 at 10:29 pm
Great, I tried it on my site and it did work.
Thank you for this code.