|
#1
|
|||
|
|||
|
I opened an account at hostgator a few weeks ago. I plan to put up a number of completely unrelated sites, each with its own domain name.
To keep things organized, my plan is to put each site in its own subfolder under public_html as follows: public_html 001-mysite1 002-mysite2 003-mysite3 ... As I purchase domains and put up sites, my thought has been to simply point each new domain to the proper subfolder. Seems simple enough. But I've run into a problem in the addon domain/redirect process. Here is what I've done so far:
This is where my problem starts: Now, the only address that actually displays my second site is http://mymaingatordomain.com/002-mysite2/ (with or without www). Everything else gives me a Network Timeout error, including: www.seconddomain.com seconddomain.com seconddomain.mymaingatordomain.com mymaingatordomain.com/seconddomain none of these work. I notice that cpanel has created a subfolder under public_html called seconddomain that contains only an .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^seconddomain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.seconddomain.com$ RewriteRule ^(.*)$ "http\:\/\/mymaingatordomain\.com\/002\-mysite2\/" [R=301,L] I don't know a whole lot about .htaccess or regex, but this looks reasonable to me. Is there a flaw in my strategy somewhere? Is there something about addon domains or cpanel redirects I'm not getting? I'm not new to hosting accounts (I've had sites up elsewhere for 5 or 6 years), but I am new to cpanel. Any help would be greatly appreciated. Brad |
|
#2
|
||||
|
||||
|
You should not have to set up a redirect for the second domain. If you create the addon correctly it will automatically direct that domain to the seconddomain folder within your account.
|
|
#3
|
||||
|
||||
|
This isn't a complete answer but just a reminder that each domain you purchase, regardless of who you purchase from, will need *UP TO* 72 hours to propagate completely after you point them to Hostgator.
Sometimes they work within minutes or a few hours, sometimes it takes longer. (There are a number of factors involved, and would require a much longer explanation than I can give.) I'll let more experienced users answer the rest of your questions. EDIT: squirrelled by GvilleRick, lol. |
|
#4
|
|||
|
|||
|
GvilleRick - thanks - I'll go back and look at the addon process and see where I might have messed up.
RainbowViper - I registered the domain 8 or 9 days ago, so should be OK on that score, but thanks for your input. |
|
#5
|
||||
|
||||
|
It can also help to include the domain name that you are having problems with so that we can see if it resolves for us and check the whois record to see if there is some error. I have seen problems in the past where the domain flipflops from resolving to not resolving. It can be due to simple propagation. I've also seen where the HG nameservers were added to the nameservers so that there are old nameservers still listed. Sometimes deleting and readding the addon domain will also fix it as the DNS gets refreshed.
|
|
#6
|
||||
|
||||
|
Quote:
You have made things way more complicated for yourself than they need to be. Thus, don't create the addon directories manually. Use the cPanel addon tool. Make sure the addon domain works by putting a page in the directory cPanel will create and trying www.addondomain.com--should work every time. The only reason to use a 301 is to prevent the one-in-a-thousand visitor from accessing your site via www.maindomain.com/addondomain but if somebody tries that, s/he already knows s/he can reach the addon that way. I believe there is another technique somewhere in an old thread, but if you absolutely do not want the domains ever associated, you should get a reseller account so each can have a separate cPanel.
__________________
Hosting term analogies, revised and improved (?) Last edited by gwyneth; 07-19-2008 at 09:41 PM. |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Redirect an addon domain to another addon domain? | kitandpup | Pre-Sales Questions | 1 | 04-17-2008 05:45 PM |
| Addon domain redirect help please | lumpy50 | Webhosting | 7 | 02-28-2008 10:00 AM |
| Addon Domain without redirect | abythebay | Pre-Sales Questions | 1 | 12-20-2007 05:45 PM |
| Addon domain problem, should I wait 24-48 hours before adding new domain? | osakka | Shared Hosting Support | 1 | 10-01-2006 08:12 PM |
All times are GMT -5. The time now is 03:52 PM.










