Forums / General Questions / 2 Domains point to one installation

2 Domains point to one installation

Views: 3,648

Results 21 to 26 of 26
30 Mar 2012, 5:28 AM
#21
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

2 Domains point to one installation

moltres93:

What I didn't explain and probably should have is that there is a good chance that later down the track one of the domains might not be useful to me anymore and I'll want to just stick with the one domain. So I just wanted both domains to work so that if I decided I wanted to close down one, the other would still work and point to the same database.

I concur with DrBytes' recommendation that that parking the domain onto your existing hosting account so that it's basically an alias to your primary domain is the smartest most efficient solution.

This is done in five easy steps.

  1. Log into your cPanel
  2. Click on the 'parked domains' icon
  3. Enter the name of the parked domain.
  4. Set the path to match your main domain
  5. Save

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

1 Apr 2012, 3:12 AM
#22
moltres93 avatar

moltres93

New Zenner

Join Date:
Sep 2011
Posts:
20
Plugin Contributions:
0

Re: 2 Domains point to one installation

RodG:

I concur with DrBytes' recommendation that that parking the domain onto your existing hosting account so that it's basically an alias to your primary domain is the smartest most efficient solution.

Thanks for the suggestion.. But if I close the primary domain, will the parked domain still work on its own? if so I will try this approach.

1 Apr 2012, 8:16 AM
#23
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: 2 Domains point to one installation

moltres93:

Thanks for the suggestion.. But if I close the primary domain, will the parked domain still work on its own? if so I will try this approach.

If you 'close the primary domain' you'll lose the hosting for the parked domain, which will need to be relocated to another host before you'll be able to use it again (This can be done at any time before 'closing the primary').

There are a number of things involved in moving servers and if it is something you thinking of doing this early in the game then perhaps before going any further you should consider making the domain you wish to keep the primary domain.

Cheers
Rod

NOTE: We are sorry that Rod is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

Ozpost - The Ultimate Shipping module for Australian Merchants. Click these links for its Homepage, or Download from Zen-Cart.com.

2 Apr 2012, 9:09 PM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,515
Plugin Contributions:
176

Re: 2 Domains point to one installation

While RodG is correct that the "primary domain" is tied to the hosting account, your hosting company (if they have any smarts at all) will be able to make adjustments to switch which domain is "primary". If nothing else they could create a new account and move your old account into the new one.
If they're not competent enough to do any of that, then as RodG says, there are lots of other hosts happy to take your business.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

3 Apr 2012, 11:24 AM
#25
moltres93 avatar

moltres93

New Zenner

Join Date:
Sep 2011
Posts:
20
Plugin Contributions:
0

Re: 2 Domains point to one installation

Figured it out, in the end I just had to edit the 2 configure.php files and point them to the right database. Phew, I really made that a lot more complicated that it needed to be! Thanks for your help and suggestions everyone

3 Apr 2012, 11:30 AM
#26
dgent avatar

dgent

Totally Zenned

Join Date:
Nov 2009
Location:
UK
Posts:
1,117
Plugin Contributions:
0

Re: 2 Domains point to one installation

Very confusing, as thats what your webhost told you to do on your first post.

Even though you are using the same database, (I run this exact same scenario) you still need to modify any files on both installation, and if you upload a new product and image, copy the image to the other hosting images folder.