Page 1 of 1
SSL in Opencart 3.0.2.0
Posted: Thu Aug 24, 2017 12:58 am
by dharam81
Hi All,
I am trying to use SSL for my store and all seems ok and there is only one problem that is first page / home open first time don't come as https.
rest of the pages using https and if I go back from any other back to home it comes as https
any suggestion please
Re: SSL in Opencart 3.0.2.0
Posted: Fri Aug 25, 2017 6:10 am
by spitos
How are you getting to "first page / home open first time" to begin with?
Re: SSL in Opencart 3.0.2.0
Posted: Sat Aug 26, 2017 12:48 am
by dharam81
I type domain.com which open at
http://www.domain.com
in broswer
Re: SSL in Opencart 3.0.2.0
Posted: Sat Aug 26, 2017 12:56 am
by spitos
Does the config.php contain correct https URL?
Made any changes to the .htaccess file?
Re: SSL in Opencart 3.0.2.0
Posted: Sat Aug 26, 2017 1:09 am
by dharam81
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^system/storage/(.*) 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]
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTPS} on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
this is what I have in httaccess and config file have correct url.
only issue for the first page rest all is coming at https
Re: SSL in Opencart 3.0.2.0
Posted: Sat Aug 26, 2017 4:35 pm
by spitos