How do I do a 301 redirect?

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.

Popularity: 6% [?]

Comments

Powered by Facebook Comments