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/

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.
October 28th, 2008 at 1:42 pm
Wowwww simply fantastic, these info will be useful for my site.
October 9th, 2008 at 6:00 am
Hi all,
i am trying to create a reserved section for a group of users to view extra pages of the blog like extra services so they have to get through a login page to access their part of the blog … i want to get them authenticated through ssl/https how can i do that with wordpress.
thanks in advance
October 6th, 2008 at 1:24 pm
I have to do a redirect, I need to change only the folders.
www.mysite.com/12345/samehtml.html
to
www.mysite.com/54321/samehtml.html
Does anyone know how to do this.
October 5th, 2008 at 10:19 am
how do we redirect 404 pages to successfull 301 homepage ??
so that we dont lose pagerank.
September 26th, 2008 at 10:01 am
Thanx indeed.
And Slots Guide
“I’ve tried your code and it seems to be working, but I’m not sure that it is good for the SEs (Google, Yahoo, MSN). I’ve seen another code:”
The example given here a plain and simple 301 redirect is perfecto for SE’s
September 14th, 2008 at 3:08 pm
i tried this
redirect 301 /index.htm1 http://www.convert2xhtml.com/
but it does not works not sure why?
September 7th, 2008 at 3:27 pm
Hello, regarding the form part, I have tried it and I am having trouble with it. First of Your tutourial was fantastic. Just where do I select were the email address goes?
September 4th, 2008 at 3:41 pm
Thanks so much for this! I kept finding such complicated code that didn’t seem to work for me, but this did the trick. I just needed to haul visitors from one to the other.