Post by Thyme » Thu Jun 05, 2014 11:15 pm

platypuspuzzles wrote:without the pages reverting back to my primary domain.
Have you tried inserting this at the top of your .htaccess file?

Code: Select all

RewriteCond %{SERVER_PORT} ^443$ 
RewriteCond %{HTTP_HOST} ^subdomain\.domain\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/store/ 
RewriteRule ^(.*) /store/$1 [L]
That's in a case where the install is in a /store/ folder, otherwise you'd have to replace them with a single slash. And if you do have your install in a folder, this goes in the root .htaccess, not Opencart's. I have a Wordpress install in my root so this is how my Opencart install is setup, and I had the same problem before adding this to the htaccess.

Newbie

Posts

Joined
Thu Jun 05, 2014 5:46 am

Post by platypuspuzzles » Thu Jun 05, 2014 11:24 pm

No, because all my domains are unique URLs, not sub domains i.e.

domain.com (has no www. as this creates a www.www for the secondary domains - instead I redirect to https://www)
www.domain2.com
www.domain3.com

All domains reference to my public_html

Active Member

Posts

Joined
Sun Jan 23, 2011 8:11 pm

Post by zelda » Fri Aug 07, 2015 12:00 pm

Hello,
I am hosting with Hostgator. I am trying to creating multi store with no success. I have the opencart multi store documentation and have followed it several times with no success. The documentation is very straight forward and very easy to follow but I just cannot get it done. I create the subdomain. I add the http://xxxxx.xxxxxxxxx.xxx/, save it in admin. Then click on the store link. The url works but all that's there is the is my whole index. What am I missing? Thank you

Active Member

Posts

Joined
Sat May 08, 2010 5:34 am

Post by labeshops » Fri Aug 07, 2015 7:34 pm

Sounds like you are not setting the document root. Follow instructions here carefully - it works:

http://forum.opencart.com/viewtopic.php?t=27538

Running Opencart v3.0.3.9 with multi-stores and the default template from https://www.labeshops.com which has links to all my stores.


User avatar
Expert Member

Posts

Joined
Thu Aug 04, 2011 4:41 am
Location - Florida, USA

Post by markjacks » Sat Sep 26, 2015 11:22 pm

Hi zelda, just curious here. Were you able to follow the steps and got multi store to work?

New member

Posts

Joined
Sun Nov 30, 2014 1:48 pm
Who is online

Users browsing this forum: No registered users and 2 guests