Post by naveen786 » Tue Jun 19, 2018 11:56 pm

If the default store is example.com and the second store is sub.example.com. Both the stores have SSL. The second store is a clone of the default store. The second store home's all the links point to the default store where correct layout works with just http but not https. If I try any internal page link manually, it is working with https where http is showing not found error.

My htaccess has this :
RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule ^(.*)$ https://www.example.com/$1 [L,R=301,NC]
RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
In the admin dashboard: settings -> Stores -> second store - >General
Store URL : https://sub.example.com/
settings -> Stores -> second store - >Server SSL is set to YES
My OC version is 2.3.0.2 Also, I want to force http to https. Any help would be appreciated.

Newbie

Posts

Joined
Wed Apr 19, 2017 10:54 pm

Post by rgbrewer » Wed Jun 20, 2018 12:27 am

Its been forever since I dealt with this, but check your config.php files and see if you can force it to https that way.

New member

Posts

Joined
Sat Apr 22, 2017 9:30 am

Post by naveen786 » Wed Jun 20, 2018 12:54 am

Config File has this
define('HTTP_SERVER', 'https://www.example.com/');
define('HTTPS_SERVER', 'https://www.example.com/');

Newbie

Posts

Joined
Wed Apr 19, 2017 10:54 pm
Who is online

Users browsing this forum: No registered users and 188 guests