Restrict Access to Addon Domains through the Main Domain

kodyxgen

Active Member
Jul 9, 2013
27
2
53
cPanel Access Level
Root Administrator
Hi,
Thank you for your replay, i know that i can redirect addon-domain.main-domain.com to addon-domain.com from .htaccess
but i was thingking that someone know a better way than go in every account and every addon domain and put this in the htaccess file :(
There must be a better way for this :)
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,884
2,250
463
is there a way to restrict access to addonDomain through the main domain?
Hello,

Could you provide a specific example of how you want to restrict access? Or, are you asking if .htaccess rules within the public_html directory apply to your addon domain names, located inside or outside of the public_html directory?

Thank you.