Post by dahentai » Fri Oct 24, 2014 8:27 am

So following the instructions in the guide

I added my second domain to cPanel > Addon Domains with the domain pointing to "/public_html".

From there I went to System > Settings and added my 2nd domains details to OpenCart.

For some reason whenever I visit my 2nd domain it redirects to my first one instead of showing the categorys/template I cofigured for it. Did I miss a step somewhere? Something I am overlooking?

Newbie

Posts

Joined
Sat Oct 11, 2014 9:10 am

Post by uksitebuilder » Fri Oct 24, 2014 3:14 pm

Have you added previously any rules to your .htaccess that redirects to your main domain ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by dahentai » Fri Oct 24, 2014 5:23 pm

Nope everything my .htaccess seems to be the defaults and I don't read anything relating to redirects.

Code: Select all

Options +FollowSymlinks

Options -Indexes

<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

RewriteEngine On

RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA][code]
[/code]

The rest of it is commented out.

Newbie

Posts

Joined
Sat Oct 11, 2014 9:10 am

Post by uksitebuilder » Fri Oct 24, 2014 6:03 pm

Just setting up a multistore demo now - will advise once domain has propagated

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by uksitebuilder » Fri Oct 24, 2014 7:33 pm

Ok, I have got multi-store working on my demo now.

Original Store: http://demo.opencart-extensions.co.uk

Multi Store: http://multistore.opencart-extensions.co.uk

Had to fix the Design -> Layouts a little as they were in a mess. Mainly the 'Default' layout needed the route 'common/home' erasing

Also fixed the manufacturer layout too as it had common/home routes in there which needed thos rows totally deleting

-

As you can see the domains do not redirect though.

I can only think then that it is a problem at your domain hosting pointing.

How have you set it up ?

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by dahentai » Sat Oct 25, 2014 5:54 am

@uksitebuilder Indeed it seems it was a DNS related issue. Previously I was using the DNS service provided by GoDaddy. I decided to use my VPS's built in nameservers and DNS handler and it seems it was a GoDaddy issue after all.

Wow, this multi-store feature is amazing.

Newbie

Posts

Joined
Sat Oct 11, 2014 9:10 am

Post by uksitebuilder » Sat Oct 25, 2014 5:58 am

It has it's limits - such as only one payment - only one delivery

But it is great for creating satellite stores for specific ranges of products etc.

User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom
Who is online

Users browsing this forum: No registered users and 17 guests