Page 1 of 1

New Store with New Domain

Posted: Sat Feb 25, 2012 9:44 am
by user65
Hello,

I am trying to setup multi-store so that I have danthegrowman.com and discountdutchmaster.com point to two different stores.

I have setup the different stores under the admin and have pointed both domains to the same directory.

Here's what i've done so far:

Setup opencart as a new install - 1.5.1.3
setup products/store a little
added new store - added domain details, etc.
pointed discountdutchmaster.com to the same directory as the main store (danthegrowman.com is the main store)

Any help is appreciated, i've tried to set it up as close to the instructions i've found but still have no luck. both domains point to danthegrowman.com

Thanks in advance,

Re: New Store with New Domain

Posted: Sat Feb 25, 2012 11:27 pm
by JAY6390
Best guesses...
check the domain in your settings is correct, also check your domains are set up correctly in cpanel. My guess is the first isn't set up right

Re: New Store with New Domain

Posted: Mon Feb 27, 2012 2:58 am
by user65
What domain settings do I need to make sure are correct?

I've pointed both domains to the same location. Both domains link to the same store - danthegrowman.com

The first store was/is working fine. When adding the second store, nothing happens but a replication of danthegrowman.com

Re: New Store with New Domain

Posted: Mon Feb 27, 2012 6:16 am
by JAY6390
What I'm saying is have you double checked that the second store in the settings is set correctly? ie there's no typos in the domain name?

Re: New Store with New Domain

Posted: Mon Feb 27, 2012 11:10 am
by user65
Yes, I double and triple checked all settings in the additional store.

I read somewhere that I have to have all of the domains hosted where the store is hosted, is this true or do I just have to point the name servers from the domains over to my webhost?

Re: New Store with New Domain

Posted: Tue Feb 28, 2012 9:01 am
by user65
I've now tested this with another install, it does the same thing.

I'm using bluehost.

They recommended I "park" the domain and it will point to the root directory (main store) but this still doesn't work.

I'm stumped, i'd really like the multi store to work, is it my host - bluehost?

thanks in advance

Re: New Store with New Domain

Posted: Tue Feb 28, 2012 1:21 pm
by mstng67
With bluehost/hostmonster you do need to park the second domain for it to point to the root directory. I'll look tomorrow to see what other settings you need to make it work.

Re: New Store with New Domain

Posted: Wed Feb 29, 2012 1:23 am
by mstng67
With Bluehost/Hostmonster you park the second domain and let it create a sub-directory for that domain. Then select redirects from the domain section of your cPanel. create a new redirect by selecting the following options:

Type: Permanent (301)
http://(www.)?: YourMainDomain.com / TheParkedDomainDirectory
redirects to→: http://YourMainDomain.com/
Wild Card Redirect: Check the Box

Select the add button, and you are done!

HTTPS (if you need it) for the second site is yet another issue to deal with.

Re: New Store with New Domain

Posted: Thu Mar 08, 2012 2:25 am
by user65
Thanks very much mstng67.

We've decided to move over to a dedicated host that will allow multiple SSL's without complication. I am doing something wrong because yet again, my multi-store setup is not working.

EDIT: I was missing the trailing "/" at the end of the domain in the settings.

Re: New Store with New Domain

Posted: Sun Mar 11, 2012 4:21 am
by user65
I went back to bluehost and tried your instructions and I'm still unable to get them to work.

Here are the issues I ran into:

When parking the domain - it does not create a folder, it points it to the root directory. store2 points to store 1.

When adding on the domain - it creates a folder like you suggested, I add the redirect as you have instructed, but it does not redirect. it continues to go to the /subdirectory of the addon.

Re: New Store with New Domain

Posted: Sun Mar 11, 2012 4:43 am
by mstng67
You don't want the parked domain to create a folder, you want it to point to the root directory. This is a step towards getting it to work properly. Try it without the redirect to begin with, as I may have added that to get the SSL working.

Do you have the trailing / added to your second store? in the OpenCart settings panel? The trailing /is crucial ie:
http://www.discountdutchmaster.com/

Re: New Store with New Domain

Posted: Sun Mar 11, 2012 5:18 am
by user65
parked and removed redirect - works fine. I believe it was the trailing /... :-[

Now to figure it out on the rackspace side. I'll try to duplicate the settings I see from cpanel over to webmin. I'll post directions if I'm able to figure it out on the cloud server.

Re: New Store with New Domain

Posted: Sun Mar 11, 2012 5:35 am
by mstng67
Good Luck!

Re: New Store with New Domain

Posted: Sun Mar 11, 2012 5:37 am
by user65
Rackspace Cloudserver Multi Store setup:

You should have the server setup, secured, and have webmin installed and accessible before starting the below.

First install the default store you will be using opencart with.
Go into settings and add the second store, insert all details. Don't forget to add the trailing "/" at the end of every domain.

Cloudserver DNS settings:
setup the default store domain with the following dns records:
a record:
Name: domain.com
Content: IP address

cname:
Name: www
Content: domain.com

Webmin settings:
Under apache server, setup 2 additional virtual servers:
domain1.com - pointing to /var/www/html or whichever root your store is located.
domain2.com - pointing to the same as above - /var/www/html or whichever root your store is lcoated.

Hope this helps a fellow googler