Prevent .htaccess redirection from affecting addon domains

twhiting9275

Well-Known Member
Sep 26, 2002
560
27
178
cPanel Access Level
Root Administrator
Twitter
Because all addons are placed in the public_html/addondomain folder (by default), yes, this is going to happen.

How to stop this from happening? Move the addon domain to /home/user/addondomain, not /home/user/public_html/addondomain/ Or, you can just use the redirect in the gallery subdirectory itself.

.htaccess controlls ALL directories under the main directory. This means that if you have something in public_html/.htaccess , it will, rightfully control public_html/directory1 , public_html/directory2 , public_html/directory3 and public_html/ itself.