How do I do a 301 redirect?
Posted on August 24, 2008
Filed Under SEO |
The 301 redirect code goes inside a .htaccess file either at the root level or in a local level. If none exists you can create one with notepad.
Open the .htaccess file and start a new line. Type the following:
redirect 301 /olddirectory/oldpage.html http://www.yourdomain.com/newpage.html
OR
Redirect permanent /olddirectory/oldpage.html http://www.yourdomain.com/newpage.html
Using Microsoft IIS you normally open the control panel, select “Home Directory”, and select “Redirection to a url”.
Double check your implementation with a server header check. Make sure the old page URL returns a 301 Redirect to the new page.
If you find my website to be cool and interesting, don't hesitate to buy me a Coffee.:)Popularity: 21% [?]
Comments
3 Responses to “How do I do a 301 redirect?”
Leave a Reply

























[…] […]
[…] Using Microsoft IIS you normally open the control panel, select “Home […] Click here to read more… Share and Enjoy:These icons link to social bookmarking sites where readers can share and discover […]
[…] The 301 redirect code goes inside a .htaccess file either at the root level or in a local level. If none exists you can create one with notepad. Open the .htaccess file and start a new line. Type the following: redirect 301 /olddirectory/oldpage.html http://www.yourdomain.com/newpage.html OR Redirect permanent /olddirectory/oldpage.html http://www.yourdomain.com/newpage.html Using Microsoft IIS you normally open the control panel, select “Home […] Click here to read more… […]