|
I have try a lot of times to create a second site in hostmonster via add-on domain, but the system inevitably create a sub-domain for me, which is not what I want, I don't want search engine bot like google or yahoo to crawl my subdomain site, only the main site |
|
In most of shared hosting enviornment, if an add-on domain is created, the sub domain have to be created as well. In order to avoid users to browse your site via your sub-domain name, you can restrict or redirect the request from subdomain to your domain name via modifying the .htaccess file Here is an example of configuration for the django application deployment in hostmonster. For instance your main domain name is www.main-domain.com and the add-on domain name is www.addon-domain.com
The first block tells if any url directly pointing the addon-domain.main-domain.com will be redirected to addon-domain.com, The rest of blocks are handling django fastcgi. The detail can be referenced from here |