Skip to main content

Addon domains accessible from main domain

Comments

4 comments

  • cPRex Jurassic Moderator
    Hey there! I would expect both methods to work - since the addon domains are virtual domains in a subfolder, domain.com/addon_folder and addondomain.com would both lead to the same content. If that isn't working, I would start by checking the DNS for the addon domains to ensure things are pointed to the correct IP.
    0
  • verdeeee
    I would expect both methods to work - since the addon domains are virtual domains in a subfolder, domain.com/addon_folder and addondomain.com would both lead to the same content.

    Hi The problem is I don't want addon1.com and addon2.com to be accessible from a folder of main.com.
    0
  • cPRex Jurassic Moderator
    As far as Apache is concerned, it just sees another directory and shows that content. One possible workaround would be custom .htaccess rules to restrict the URL path inside the addon directory, but you'd have to test that out to make sure it doesn't interfere with your site content or other redirects that may be in place.
    0
  • verdeeee
    Thank you.
    0

Please sign in to leave a comment.