Help - Search - Members - Calendar
Full Version: add-on domains
Hostony Board > General > Pre-Sales Questions
plucky
I'm thinking of adding an add-on domain to my hostony site. Can you give me a feeling for the level of flexibility add-on domains provide?

For instance, if my main site is jones.com and I set up the add-on domain andy.com, would it be possible to have someone who navigates to http://andy.com/ see the contents of http://jones.com/people/andy/ ?

Thanks.
MartinB
yes i think so.
Also, all add-ons share the same cpanel account.
ser_pros
When you add an add on domain andy.com you should define a folder for it.
For example this folder is /people/andy/ and your main domain is jones.com.
So you can see the same contents in http://andy.com/ and in http://jones.com/people/andy/
JasonJones
If you are concerned about this you can use .htaccess (on linux hosting) to rewrite the URL's and prevent people from ever seeing /people/andy and only ever getting andy.com. I rewrite all my addon's this way as I do not like the idea of people going to the /people/andy type of url. I also rewrite the addon URL that is created and cannot be removed of andy.com.jones.com.

If you want example code, let me know.

Jason(jones)
sargon
Jason,

Could you provide sample code? I would greatly appreciate it.

Thanks.
JasonJones
Primary domain (bigname.com)
Addon Domain name (foo.biz)

So you own bigname.com and foo.biz.. The domain associated with your login is bigname.com and you want to addon the domain foo.biz.

This one goes in .htaccess in the /home/username/public_html/ folder
CODE
Redirect permanent /foo.biz http://www.foo.biz

That one tells anyone who tries http://bighost.com/foo.biz to go to http://www.foo.biz instead



This one goes in .htaccess in the /home/username/public_html/foo.biz folder
CODE
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.foo\.biz\.bighost\.com [NC]
RewriteRule ^(.*) http://www.foo.biz/$1 [R=301]
RewriteCond %{HTTP_HOST} ^foo\.biz\.bighost\.com [NC]    
RewriteRule ^(.*) http://www.foo.biz/$1 [R=301]

This one fixes the problem if for whatever reason someone tries to access your foo.biz domain via the dns entry www.foo.biz.bighost.com (this is made automatically by cpanel in your dns entries) it rewrites the URL to www.foo.biz. The second part does the same just drops the www part...

Hope that is clear, if not ask..

Jason
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.
IPS Driver Error

IPS Driver Error

There appears to be an error with the database.
You can try to refresh the page by clicking here