|
#1
|
|||
|
|||
|
I just signed up for Baby Croc.
I can't figure out where to make new domains. FAQ and searching posts doesn't turn up anything... only addon etc. I have several websites, all hosted with the evil Infinology (from whom I'm 'trying' to flee at break-neck speed!) If I understand correctly, addon will create a subdomain, praking one ontop of another, eg indigoivories.mathesonbayley.com Two of my sites are mathesonbayley.com and indigoivories.com How do I set that up as separate domains? Thanks |
|
#2
|
|||
|
|||
|
You need to use the addon domain feature in cpanel.
This will create and work out of a folder in your main account but it is a fully functional domain with its own email, ftp etc. Lets say your main account is domain1.com you could create an addon for domain2.com, its address will be domain2.com. The only thing that also happens is because the addon domain is in the main websites folder it could also be accessed through the main domain. So if you called your addon domain folder addondomain then it could be accessed with http://www.domain1.com/addondomain/index.html as well as www.domain2.com. It does not really matter as you could choose a folder name thats not likely to be tried and possibly block access through the main domain with the .htacess file. |
|
#3
|
|||
|
|||
|
How would you setup the htaccess file to block access to the addon sites?
|
|
#4
|
|||
|
|||
|
put the .htaccess in the sub folder for that domain.
|
|
#5
|
|||
|
|||
|
right, but what goes in the htaccess file. I only know how to use it to password protect.
|
|
#6
|
|||
|
|||
|
Quote:
if your base domain is example.com and you have an add-on domain addondomain.tld, the add-on will be accessable at http://addondomain.tld/ AND http://example.com/addondomain/ (unless you named the folder something else when you created the add-on domain) To disallow access by visitors using http://example.com/addondomain/ use the following rewrite rule in the add-on domain's root folder .htaccess file (/public_html/addondomain/.htaccess) RewriteEngine on RewriteCond %{HTTP_HOST} !addondomain\.tld$ [NC] RewriteRule .* /404.shtml [L] The Rewrite condition: RewriteCond %{HTTP_HOST} !addondomain\.tld$ [NC] does a case-insensitive check on the http-host and returns true if the folder is not being accessed using http://(optional subdomains)addondomain.tld/ The rule: RewriteRule (.*) /404.shtml [L] Shows the base domain's 404 page http://example.com/404.shtml Just be sure to change addondomain\.tld to your add-on domian's name and place at the top of your .htaccess file for each add-on name you want protect Rich |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 06:29 AM.









