Domain parking/redirection loop bug in cPanel


I suffered an issue the other day that I though might be worth a mention. As well as, I also own the domain To get the domain to forward to the .com site I added the as a parked domain under the cPanel of the main site, then re-directed to Easy enough.

There was one slight problem though. When I visited a sub-folder of (i.e. /Links), it would remain on instead of forwarding. Turned out I needed a wildcard re-direct as well as making sure my target site ended with a ‘/’. The problem was that when I tried to append ‘/’ to my target domain, cPanel would fail: ‘Redirecting to will cause a redirection loop..’.

After a bit of investigation it turned out cPanel was writing the wrong code to my .htaccess file. I believe this to be a known bug that’s et to be fixed. The solution? Do it manually:

RewriteCond %{HTTP_HOST} ^$ [OR]
RewriteCond %{HTTP_HOST} ^$
RewriteRule ^(.*)$ "http\:\/\/www\.mishtertea\.com\/$1" [R=301,L]

If copying, you’ll just need to change the ‘’ and ‘’ to you source and destination domains respectively. Once updated this also shows up correctly in cPanel.

Posted in Coding, Web | Tagged , , , | Leave a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

> Talk to me!

Twitter profile for Richard Turnbullwitter:
  • Attempting to load Twitter feed..
Facebook profile for Richard Turnbull LinkedIn profile for Richard Turnbull

> Tools

Share |

> Advert