Phone: 858-565-2171
Control Panel Login

 

How do I implement a 301 redirect?

How do I implement a 301 redirect?

Create or modify the .htaccess file in the Apache root directory (/htdocs/) of your domain. If there is a .htaccess file already exists, with lines of code present, be very careful not to change any of the existing lines, unless you are familiar with the functions of the file.

To create a redirect, add a line in the file, that follows this example:

Redirect 301 /old/file.html http://www.example.com/new/file.html

Add additional lines for additional redirects. Once the .htaccess file is configured, you should be able to test the redirect from your web browser.

For more information, refer here.