{"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:
\/\/ HTTPS
define('HTTPS_SERVER', 'https:\/\/opencart.loc\/');<\/strong><\/code><\/p>\n\n\n\n

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\/');<\/strong><\/code>
<\/p>\n\n\n\n

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 :
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^ https:\/\/%{HTTP_HOST}%{REQUEST_URI} [L,R=301]<\/strong><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"

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

OpenCart force to SSL<\/span> Read More »<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"publish_to_discourse":"","publish_post_category":"","wpdc_auto_publish_overridden":"","wpdc_topic_tags":"","wpdc_pin_topic":"","wpdc_pin_until":"","discourse_post_id":"","discourse_permalink":"","wpdc_publishing_response":"","wpdc_publishing_error":"","footnotes":""},"categories":[1],"tags":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/posts\/5428"}],"collection":[{"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/comments?post=5428"}],"version-history":[{"count":0,"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/posts\/5428\/revisions"}],"wp:attachment":[{"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/media?parent=5428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/categories?post=5428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sloupok.com\/wp-json\/wp\/v2\/tags?post=5428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}