Post by minresco » Sat May 16, 2020 2:33 am

OC Version 2.3.0.2
Both stores are in sub-directories. i.e. Store1.domain.com (default) and Store2.domain.com.

Without SSL, both stores were working. I then enabled SSL on the server. To get it to play, I had to edit the SQL database and replace all instances of http: with https:. Now all of the pages of the default store (Store1) show ssl and lock.
The problem is now I can no longer access Store2. When I enter the url for Store2, the browser brings up Store1.

Here is the .htaccess file in the directory of Store1.

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
My subdomains look like this:
Store1.domain.com root is /public_html.Store1
Store2.domain.com root is /public_html.Store1

In OC panel > System, the store list looks like this. Note that default store is http: and not https: like Store2. Is this a problem? I can't find how to change that.
http://www.Store1.Domain.com/
https://www.Store2.Domain.com/

I may be missing something simple, but I have been looking at this far too long and am at a loss. Any help would be greatly appreciated.

Solved...
Home/Stores/Settings - Added SSL URL = https://www.store2.domain.com/
Dumb oversight on my part.
Last edited by straightlight on Sun May 17, 2020 12:32 am, edited 1 time in total.

New member

Posts

Joined
Fri Sep 18, 2015 1:59 am
Who is online

Users browsing this forum: No registered users and 31 guests