shftr Posted October 3, 2012 Report Share Posted October 3, 2012 Hello, 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 yyy.com and I add zzz.net, I don't want visitors to have access thru zzz.yyy.com. Thank you for your answer. Quote Link to comment Share on other sites More sharing options...
shftr Posted October 6, 2012 Author Report Share Posted October 6, 2012 Is it such a big problem? I'm your customer too and you've been replying almost instantly to other people. Quote Link to comment Share on other sites More sharing options...
Tony Posted October 6, 2012 Report Share Posted October 6, 2012 Our forum is not an official means of support if you need an instantaneous reply you're best to actually contact support via https://support.hawkhost.com/ . 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. Quote Link to comment Share on other sites More sharing options...
SereBlue Posted January 24, 2013 Report Share Posted January 24, 2013 Hello, 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 yyy.com and I add zzz.net, I don't want visitors to have access thru zzz.yyy.com. 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 zzz.net they get zzz.net, but when they go to zzz.yyy.com, they get a 404 Page Not Found error on yyy.com. 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 ^(.*)$ http://yyy.com/404.html [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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.