cpanel can not redirect the domain while the subdomain works good

beyondwind13

Registered
Aug 2, 2012
1
0
1
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 abc.domain.com to domain.com/ttt,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]
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,211
363
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.