Link to home
Start Free TrialLog in
Avatar of SeekingKnowledge
SeekingKnowledge

asked on

How do I keep the website live during the domain transition?

I am facing a small problem in hosting bollywoodshaadis.com on bollywood-shaadis.com.
 
Here is a description of the problem:

Originally, the plan was to make bollywoodshaadis.com as the  parent (national) website of child websites DelhiWeddingPlanners.com, MumbaiWeddingPlanners.com, etc. Then, we decided to actually make the domain bollywood-shaadis.com as the parent domain.The following question pertains to this goal.
 
While creating a new account on hostgator for bollywoodshaadis.com, I had mentioned it as my primary domain name. Any subsequent domain additions to this account (Please mind that I have to host all portals even the child portals on this user space itself as I need to share database) are considered as "Additional Domains". Now additional domains act like subdomains to the primary domain. For example consider the following link: http://bollywoodshaadis.com/delhiweddingplanners.com/ although this link looks absurd, it actually points to the physical location of DelhiWeddingPlanners.com. Similarly all websites, such as MumbaiWeddingPlanners.com and BangaloreWeddingPlanners.com, are hosted in this manner.
 
Now if I add bollywood-shaadis.com as an additional domain its not a problem. In fact I have already done that. Problem comes when I need sub-domains (delhi.bollywood-shaadis.com) on bollywood-shaadis.com. For creating this I have to fiddle with my subdomain records
and if that takes time to propagate or worst off something goes bad on my live server, all the child websites will be dead as for all of them bollywoodshaadis.com acts as an image server(article images only). And you have to keep in mind that I use cpanel to do all the changes for subdomains and other server administration as I am not very comfortable fiddling with httpd.conf file directly or domain records directly. In fact, I have faces such propagation problem before while I was setting up bollywoodshaadis.com's sub domains initially, the whole site went down after I changed records as the Host gator admin told me that it takes time to propagate any change. And also due to some hostgator's fault the domain started to point back to the default parking page and I had to contact gator chat to fix it up for me. Any such goof up can't be tolerated on a live project. For this reason I am a little paranoid about doing this small change which practically would take me few minutes to do.

Can anyone suggest a solution? Thanks!
Avatar of RedLondon
RedLondon
Flag of United Kingdom of Great Britain and Northern Ireland image

There won't be any DNS changes to propagate: DNS just holds the domain name and the server's IP address.  If you are shuffling domains around on the same server, the IP address won't be changing and there's nothing for the DNS to do.

When you use cPanel's Add domain to add the domains like delhiweddingplanners.com it will suggest a Document root of /public_html/delhiweddingplanners.com and that's what will be creating a folder delhiweddingplanners.com on bollywoodshaadis.com.  You can simply avoid that http://bollywoodshaadis.com/delhiweddingplanners.com confusion (and remove the risk of you accidentally deleting the folder delhiweddingplanners.com if you ever forgot its significance) by not accepting the default Document root of /public_html/delhiweddingplanners.com.  Change it to /public_html_delhiweddingplanners.com and then delhiweddingplanners.com's files can go in their own folder on the same level as public_html instead of a subfolder of it.
Avatar of SeekingKnowledge
SeekingKnowledge

ASKER

Hi,

But as I mentioned in my earlier post, I faces such a problem. I added another sub domain definition and the cpanel messed the other sites' subdomains too. The domains started to point to  the default parking page for no reason.

My service providers didn't provide me with a legitimate reason for that.

The reason for my added adding the addon domains under the primary domains folder was that I needed to share the application space.

Anyways thanks for your advice it will certainly help me in making decisions in future. For now I will host the images on  a different server before experimenting with the sub domains.
ASKER CERTIFIED SOLUTION
Avatar of RedLondon
RedLondon
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hi I by quota or application space I didn't mean the physical storage space. It's the source code base that is shared by these applications.

About the lack of proper response from the host we are surely considering sending them a negative feedback regarding this issue.

For solving the parking problem, the host's support executive asked me to remove and add the subdomain details again after that it started to work in around four hour's time.