Answered by
Oliver Hall
Setting up a 301 redirect is crucial for maintaining SEO rankings when changing URLs. On Bluehost, this can be achieved via the .htaccess file or through cPanel. Here’s how to do it both ways:
This method involves modifying the .htaccess
file in your site’s root directory. If you're not familiar with accessing this file, use an FTP client or the File Manager in cPanel.
Log into your cPanel.
Navigate to File Manager under the Files section.
Locate the .htaccess
file in the public_html directory. If it doesn’t exist, create a new file named .htaccess
.
Edit the file and add the following line where oldpage.html
is your old page, and newpage.html
is the new URL where you want the traffic redirected:
Redirect 301 /oldpage.html http://www.yourdomain.com/newpage.html
Save changes and close the editor.
For those who prefer not to edit files manually, Bluehost provides an easier method through its cPanel.
www
.After setting up your redirect, it's advisable to test by visiting the old URL to confirm that it redirects correctly to the new destination.