- What is a 301 Redirect
- Accessing Your .htaccess File
- Adding a 301 Redirect
- WP Hosting 301 Redirects
What is a 301 Redirect?
A 301 redirect is a way to permanently reroute traffic from an old URL to a new one. If a business is moving to a new website, it might be hard to reach all the customers about the change (and even harder to get them to remember).
A 301 redirect solves the problem by rerouting all the traffic from the old URL to the new one. So customers who accidentally go to the old site will automatically end up at the new one, even though the URLs differ.
You can add 301 redirects for single pages or entire domains. All you have to do is add a line into your .htaccess file. This is easy to do in the ACC. Just follow the steps below:
NOTE: If you have a WP Hosting account, 301 redirects will be configured differently. Go to the WP Hosting 301 Redirects section to see how we recommend setting one up.
Accessing Your .htaccess File
- Log into the Account Control Center (ACC)
- Click Domains in the left sidebar
- Click Manage Your Domain Names in the drop-down
- Under Domain Name, click the name of the domain you would like to work on
- Across from Web Settings, click Manage Web Settings
- If you have never created an .htaccess file before, click Create an .htaccess File. If you already have a .htaccess file, click View or Edit Your .htaccess File
Note: Leave the file name as-is. It must remain .htaccess in order to work.
Adding a 301 Redirect
To 301 Redirect a Page:
Redirect 301 /old-file.html http://www.domain.com/new-file.html
To 301 Redirect a Domain:
Redirect 301 / http://www.new-domain.com/
Note: Be sure to add a blank line at the end of your .htaccess document. This signals to the server that it has reached the end of the .htaccess file.
After you are finished, click Create File for new files or Save Changes if you already had a .htaccess.
WP Hosting 301 Redirects
Redirects are easily done by implementing the Simple 301 Redirect plugin. Simply follow these steps:
- Download the plugin to your WordPress plugin directory
- Activate the plugin through the Plugins menu in WordPress
- Go to the Simple 301 Redirect plugin’s Settings
- Click the 301 Redirects page
- Add redirects
For more advanced WordPress users, the PHP header can be edited to create a redirect. Check out the wp_redirect feature’s WordPress documentation to see how this works.