{"id":5428,"date":"2019-07-28T16:50:01","date_gmt":"2019-07-28T16:50:01","guid":{"rendered":"https:\/\/sloupok.com\/?p=5428"},"modified":"2019-07-28T16:55:11","modified_gmt":"2019-07-28T16:55:11","slug":"opencart-force-to-ssl","status":"publish","type":"post","link":"https:\/\/sloupok.com\/opencart-force-to-ssl","title":{"rendered":"OpenCart force to SSL"},"content":{"rendered":"\n
Open config.php from root of your site and change to HTTPS, example: after this open another config.php here: admin\/config.php and change done, now your site awailable with https, you can test it.<\/p>\n\n\n\n But if you want auto update every your page with https instead http you should open .htaccess file from root of your site ( check file name, maybe you need uncomment\/rename file. for example change .htaccess.txt to htaccess ) and add this after RewriteEngine On : Open config.php from root of your site and change to HTTPS, example:\/\/ HTTPS define(‘HTTPS_SERVER’, ‘https:\/\/opencart.loc\/’); after this open another config.php here: admin\/config.php and change \/\/ HTTPS define(‘HTTPS_SERVER’, ‘https:\/\/opencart.loc\/admin\/’); define(‘HTTPS_CATALOG’, ‘https:\/\/opencart.loc\/’); done, now your site awailable with https, you can test …<\/p>\n\/\/ HTTPS
define('HTTPS_SERVER', 'https:\/\/opencart.loc\/');<\/strong><\/code><\/p>\n\n\n\n\/\/ HTTPS
define('HTTPS_SERVER', 'https:\/\/opencart.loc\/admin\/');
define('HTTPS_CATALOG', 'https:\/\/opencart.loc\/');<\/strong><\/code>
<\/p>\n\n\n\nRewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/strong><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"