i install opencart lastest version and i wanna enable all ssl for url
In admin set SSL enable
in config.php both admin and category change to https
htaccess
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/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]
RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www.
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
but when url is not SEO it work so url with SEO it not work
the url will be
https://www.localhost/index.php?route=desktops/mac
how to change to
https://www.localhost/desktops/mac
5
Answers
Have you changed in admin ?
in admin panel > setting > security
enable
use SSL
I just spent and entire night getting this to work hope it helps somebody. I currently have an Opencart 2.2 with SSL/https working for all pages. (good crap what a chore).. I am using the Fastor Theme and have SEO Pack Pro, vQMOD, and several other mods and extensions.
Here’s what I did:
1. Install v2.2.0.x Changes.zip
DO NOT update VQMOD to 2.6.1 (killed my install)
DO NOT install VQMOD Manager 3.0 (Also killed my install).
Just Manually install. Google that if you need to.
Then install this extension
No I can’t read spanish, but I looked at the xml file and it’s setting site_ssl to true in multiple pages as was suggested to do manually somewhere deep in the forums.
This made it so the checkout/checkout and information pages also worked.
Admin panel > Settings > Security > Use SSL
Modify .haccess for SEO/SSL/WWW (I got my cert for www of the site because I wanted the whole site to be SSL). Replaces the seo rewrite chunk you should see in your haccess file:
Other Manual Fixes I made:
Currency/Currency Fix
The currency/currency “fix” didn’t work for me. If the currency changer is breaking your SSL you can try that fix or remove it by removing all code in view/common/currency.tpl. Make a backup and then just blank the code.
Not Loading Images/CSS
Try this fix:
I also put in this fix by hand don’t know if the v2.2.0 Changes.zip gets this one or not:
It means that install the opencart whitout vqmod and use the solution and then install vqmod
I also installed opencart 2.2.
I tried the extension for https but it crashed everything ;(
I found a working solution 3 Steps :
•• 1 ••
in .htaccess : Added at the end
•• 2 ••
in config.php in root + admin
**** even with https:// in the browser wasn’t enough…. in the source every links where http:// ….
**** So i found this last step
•• 3 ••
in system/library/url
Modified http to https and voilà 🙂
Ok, here’s what I just did:
https
was showing errors and my add to cart, etc – was not working. I had to enablessl
in the site settings from admin, standard, then I checked myheader.tpl
file in notepad and clicked on edit-findHTTP
and changed two entries toHTTPS
and the dir to an image file I had added in the html for the header at an earlier date, which directed it to
http://mywebsite url
.These two things were causing the error. As soon as I
ftp'd
the file back to the site it worked fine in Firefox and IE. I’m a complete novice at coding but it was obvious (after ripping a few hairs out) so just check your header files and change everyhttp
tohttps
. And cross your fingers and toes.