The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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 Forums Analyst
    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.

Share This Page