Skip to main content

htaccess - exlude another Domain

Comments

2 comments

  • cPanelMichael
    Hello, One option to consider is to check with your hosting provider to see if they can disable the following option under the "Domains" tab in "WHM >> Tweak Settings": Restrict document roots to public_html This would allow you to move your addon domain name outside of the public_html directory so it's not affected by the .htaccess rules in the public_html directory. Otherwise, you'd need to exclude the addon domain name from the rewrite rules configured in the .htaccess file located in the public_html directory. Here's a third-party URL where rules like that are discussed: .htaccess mod_rewrite - how to exclude addon domain from rewrite rule? Thank you.
    0
  • clockwork80
    thank u, solved.
    0

Please sign in to leave a comment.