PDA

View Full Version : Setting main domain as addon domain???


raavin
10-16-2006, 12:20 AM
Hey there,

I was wondering if anyone knew if you could set the main domain as an addon domain, if that makes any sense.

I have a rails app set up in a subfolder and I couldn't figure out how to point the main domain to the rails app so I hacked a bit by changing the public_html folder to public_html_old and creating a link called @public_html to my rails folder like this http://www.raavin.com/#SetMainDomainToRailsFolder

Now I can't create any subdomains as the first port of call is the dispatch.cgi/fcgi files so it thinks my new subdomain calls are rails actions which don't exist.

It seems like I might be able to create an addon domain with the name of my main domain which points to the rails folder but I'm not sure if it will work or not as the domain might try to resolve to both the main and subfolder.

I will have a play but I just thought someone might know the best way to achieve this.

Cheers,

Raavin ;)

Benjamin
10-16-2006, 04:30 PM
Unfortunately, each domain must be one or the other, a main domain or an addon domain. You can use redirects, or HostMonster can rename your account to a different main domain, although it will delete everything on your account, so a full backup is highly recommended.

HarryGuerilla
10-17-2007, 08:44 PM
I also set up my rails program as a subfolder and ended up using .htaccess to redirect the url.

you can find a detailed description here:
http://hostmonsterforums.com/showthread.php?t=1257&page=2&highlight=rails