Post by mariusblk » Fri Jan 17, 2020 1:09 pm

Hello forum, recently i activated the free SSL certificate from Letsenctypt via cPanel for my store.

I followed this guide http://docs.opencart.com/en-gb/administration/ssl/ ... yeah i know you will tell me that this is not enough, also i added https server and https catalog in config.php and admin/config.php

I did not mess or modify .htaccess thow i found some guides on the web with some rewrite rules. Then i thought that i should ask the experts here on forum.

You can see the result here on epantofaria.ro So the thing is that root and pages of the website are https but products and category are not if you browse the website. But if you click on a product let's say and edit the link with https it does work, but not by default.

Can you guys help me a little bit here to proper install https. I'm using ver. 2.1.0.2. Thank you

Newbie

Posts

Joined
Thu May 15, 2014 6:56 am

Post by opencartmart » Fri Jan 17, 2020 3:32 pm

There are many hardcoded HTTP URLs in your store. You first correct those URLs.

Attachments

hard-coded-url.jpg

hard-coded-url.jpg (136.76 KiB) Viewed 2466 times


XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by wrick0 » Fri Jan 17, 2020 7:14 pm

download your entire site, use notepad++ find in files to find all the old urls -> replace with the https version -> reupload files -> $$ PROFIT

make sure to backup everything before doing this though

or shoot me a pm i can probably do this for you for a small fee

Active Member

Posts

Joined
Fri Jan 18, 2019 10:00 pm
Location - 127.0.0.1 @ The Netherlands

Post by johnp » Fri Jan 17, 2020 7:55 pm

Use www.whynopadlock.com and that will tell you what you need to do. Also try adding the code below to your .htaccess file.

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by mariusblk » Sat Jan 18, 2020 12:23 am

opencartmart wrote:
Fri Jan 17, 2020 3:32 pm
There are many hardcoded HTTP URLs in your store. You first correct those URLs.
Can you please explain how to make this change, i mean i use the theme menu option and i do not type the url i just insert the category and that's all

Newbie

Posts

Joined
Thu May 15, 2014 6:56 am

Post by xxvirusxx » Sat Jan 18, 2020 12:59 am

Change all http with https in both configs and enable Use SSL from admin store settings.

Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer


User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by opencartmart » Sat Jan 18, 2020 1:09 am

mariusblk wrote:
Sat Jan 18, 2020 12:23 am
Can you please explain how to make this change, i mean i use the theme menu option and i do not type the url i just insert the category and that's all
1. First, Make sure you have set https URL in both config file

2. If the config files are correct, you can try clearing the theme cache if it has any. Perhaps it keeps the old URL in their cache and showing it.

3. If the problem persist, you have to look into the code if there are any hardcoded URLs are set out there.

XForm - Opencart Form Builder
Xshippingpro - An advanced Shipping Module
Need Professional support? Skype: opencartmart


Active Member

Posts

Joined
Wed Oct 02, 2013 3:59 am

Post by mariusblk » Tue Jan 21, 2020 10:29 pm

opencartmart wrote:
Sat Jan 18, 2020 1:09 am
mariusblk wrote:
Sat Jan 18, 2020 12:23 am
Can you please explain how to make this change, i mean i use the theme menu option and i do not type the url i just insert the category and that's all
1. First, Make sure you have set https URL in both config file

2. If the config files are correct, you can try clearing the theme cache if it has any. Perhaps it keeps the old URL in their cache and showing it.

3. If the problem persist, you have to look into the code if there are any hardcoded URLs are set out there.
1. done this
2. cleard cache, deleted all files in theme cache folder
3. There are none hardcoded links, i mean i did not enter any link by hand, all links are generated by opencart or theme

Question is still there, why are some links working by default with https and some with http. I mean if i skipped some steps all the links should be http

Let's take it this way, if you inspect the logo you can see that the link is http://epantofaria.ro but if you click it redirects to https://epantofaria.ro
But there is another example, if you inspect any of the menu links they are all http but when you click on them you get http and not the redirect. Is like the redirect works only with domain name and not all other links. I'm a little confused.

Newbie

Posts

Joined
Thu May 15, 2014 6:56 am

Post by johnp » Tue Jan 21, 2020 11:55 pm

Your home page is fine in my browser and all links are https://

This page shows as insecure in my browser but whynopadlock.com says it's fine:

http://epantofaria.ro/ghete-dama-moi

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK

Post by johnp » Wed Jan 22, 2020 12:02 am

Try this and report back:

https://www.opencart.com/index.php?rout ... _license=0

If that doesn't work try this one which I find works fine:

https://www.opencart.com/index.php?rout ... load_id=37

Opencart 1.5.6.5/OC Bootstrap Pro/VQMOD lover, user and geek.
Affordable Service £££ - Opencart Installs, Fixing, Development and Upgrades
Plus Ecommerce, Marketing, Mailing List Management and More
FREE Guidance and Advice at https://www.ecommerce-help.co.uk


User avatar
Active Member

Posts

Joined
Fri Mar 25, 2011 10:25 am
Location - Surrey, UK
Who is online

Users browsing this forum: No registered users and 7 guests