How to Redirect a Domain in cPanel and fix Broken Redirects

  Print

How to Redirect a Domain in cPanel and fix Broken Redirects


Note: The information in this article is general, and may not work with all sites. Website development is considered outside of our support scope. If in doubt, please consult your website developer.

How to Redirect a Domain in cPanel
Step 1 - Log into cPanel and click on the Redirects icon.

49bbcb5ef45dacb3bf3c435f708ca2c646284d24124354da68a9732fe08b7b5790cb3b1534e56fdf?t=f26203d373968c4e0324f02faeacab9d



Step 2 -
(1) Select Permament (301)
(2) Select the subdomain you want redirected
(3) If you want to redirect a specific subpage, (e.g. yourdomain.com.au/shop) add the 'shop' part here, otherwise leave this blank.
(4) Add the site you'd like to be redirected to. You will need to add https:// at the front, but don't need to add "www."
(5) Select Redirect with or without www.
(6) Click Add.

* The Wild Card Redirect option will, for example, redirect "yourdomain.com.au/page1" to the equivalent in the new domain, e.g. "newdomain.com.au/page1"
dcc12aa93bfcff745f56bed54ca7a69d33ff6ddabec694917eb70c4dc075456069504afb0e5f5b1d?t=8e70782f8bd3e522198b8e698d1a80c2



Step 3 - Confirm the redirect is working by checking the site in an incognito window, or in a tool like Redirect Detective.

How to Fix Broken Redirects
Step 1 - Log into cPanel and click on the Redirects icon.

b2281fcc4f582238ea1a5481965c3e3848cd7e51?t=7dc5590580fea1efd77d95b85f011178





Step 2 - Scroll down to the bottom to see what redirects you have added.

26767e18498c1b14f3cf68b85fc9843317b27e09?t=af3ab76fd7965fae202b055984066928


Step 3 - First, delete the redirect from cPanel and try to re-add it. Test once you've added it (You may need to use a non-cached browser or device, as redirects are cached quite heavily).


Step 4 - If that doesn't work, you need to edit your .htaccess file (click here for a guide)

You will see a line at the bottom of the file with the redirect. It should look something like this

c3e86b8ea9416dc4fb7c36bf1c24c1bbc9ebc89d?t=b280ba7fcb825cda02e13c03b9c182d9


Move just that single line to the top of the file, then hit the Save button.

3a194604042b42df747ba08214be61b06447af90?t=f7f484323b9c1b8450f0d5032093fe04


Step 5 - As before, check the site in an uncached browser or device, or in a tool like Redirect Detective.


Thank you for your feedback on this article.

Related Articles

© Crucial