Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

cpanel can not redirect the domain while the subdomain works good

Discussion in 'General Discussion' started by beyondwind13, Aug 2, 2012.

  1. beyondwind13

    beyondwind13 Registered

    Aug 2, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Website Owner
    I tried several times and it is really wield.
    At the beginning i can redirect my domain but after i setup a new forum it seems not working.
    However,if i redirect a subdomain such as to,that is fine.

    the ttt folder is under the www or public html

    and the haaccess:

    RewriteEngine on

    RewriteOptions inherit

    RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]
    RewriteCond %{HTTP_HOST} ^www\.domain\.com$
    RewriteRule ^/?$ "http\:\/\/domain\.com\/ttt" [R=301,L]
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    To clarify, does the redirection of your primary domain name stop working after you create a subdomain? Or, does it stop working after you add an additional redirect for your subdomain? Please ensure you are using the "Redirects" option in cPanel to create the redirect rules. If you are, could you ensure there are no additional custom rules in the .htaccess file within the account's public_html or it's subdirectories?

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice