Addon domain without subdomain on main one?


Recommended Posts

Our forum is not an official means of support if you need an instantaneous reply you're best to actually contact support via . To answer the question it's not possible to have cPanel remove the subdomain when creating an add-on domain. It's part of it's system for managing the add-on domains at this point and thus cannot be removed.

Link to comment
Share on other sites

  • 3 months later...

I'd like to ask if it's possible to setup addon domain without creating subdomain on my main one.

To be clear if I have main and I add, I don't want visitors to have access thru

Thank you for your answer.


I feel likewise about my addon domains, so I set up an .htaccess file for each of my addons so that when visitors go to they get, but when they go to, they get a 404 Page Not Found error on


I'm not an htaccess guru of any sort, and this doesn't work perfectly, but what I have is:


RewriteEngine on
RewriteCond %{HTTP_HOST} yyy [NC]
RewriteRule ^(.*)$ [L,R=404]

(Those three lines go in the .htaccess file in the docroot of the addon domain.)  When the string "yyy" (case insensitive) is found in the host specified in the request, it coughs up a 404.  When that string isn't found, it serves pages normally.  This is working fine for my docroot, but I think it's not doing the right thing for subdirectories, and I've yet to figure out why.

Link to comment
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.

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.