Sign in to follow this  
themaxx

Stopping addon domain from being accessible from main domain?

Recommended Posts

Hi

I have multiple domains setup through hawkhost and they are all working fine. However, I would like to make it so that my addon domains are not accessible from my main domain.

My setup:

maindomain.com -> public_html

1staddondomain.com -> public_html/1staddondomain

2ndaddondomain.com -> public_html/2ndaddondomain

3rdaddondomain.com -> public_html/3rdaddondomain

All are accessible through their respective .com addresses, which is normal.

But, I can access my addon domains like this:

maindomain.com/1staddondomain

maindomain.com/2ndaddondomain

maindomain.com/3rdaddondomain

which I don't want to be able to do. Is it possible to stop this?

Thanks

Max

Share this post


Link to post
Share on other sites

Yes it is when you add an add-on domain it asks you where you want to store it and by default it does public_html/domain.com . You can store it as strictly domain.com or even a bunch of sub folders like domains/blogs/ or name the folder anything you want.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this