Post by Patchworks101 » Wed May 19, 2021 11:13 pm

Hi
My SSL cert is installed to the site bmscatering.co.uk and I have just updated the 2 x config files (/ and /admin/config.php) as instructed in this forum and I updated the .htaccess file as well. However I now cannot access the atore admin pages at all and I get
This site can’t provide a secure connectionbmscatering.co.uk sent an invalid response.
ERR_SSL_PROTOCOL_ERROR
I've taken out the edits to all 3 files and tried to reload the DB but I'm still getting the same response.
Any ideas please.

Newbie

Posts

Joined
Wed May 19, 2021 11:08 pm

Post by khnaz35 » Thu May 20, 2021 12:01 am

What code you have put in?
It should not be that very complicated.

Share your code here.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Patchworks101 » Thu May 20, 2021 2:07 am

khnaz35 wrote:
Thu May 20, 2021 12:01 am
What code you have put in?
It should not be that very complicated.

Share your code here.
Hi
I have simply updated the 2 x config files with the address to the https url, as per a previous post in this forum, and the htaccess file with

Code: Select all

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
-(putting in my domain address)
again, from a previous post re this subject.
I've now deleted the addition to the .htaccess and I can now open the login page but, as soon as I enter my details and hit login I get the same error message as quoted originally.

Newbie

Posts

Joined
Wed May 19, 2021 11:08 pm

Post by johnp » Thu May 20, 2021 5:35 am

I would disable Opencart and test that the SSL has been correctly set up using either a simple PHP page or a flat file CMS. If the page/CMS loads correctly under SSL then you know Opencart is the problem and can have a rethink.

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 khnaz35 » Thu May 20, 2021 3:17 pm

Agreed with John.
May be he could take help from his/her Host as well to troubleshoot if the SSL is install correctly.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Patchworks101 » Thu May 20, 2021 5:24 pm

Thanks to both of you.
I've just tried the site, without opencart, and the site page www.bmscatering.co.uk is loading ok but without the https being displayed and Chrome showing "Not Secured" so I am assuming that you are correct and that it is a SSL problem and not opencart.
I've checked with my server account and that is showing that the SSL has been installed correctly (getting a green shield icon and not the red one that it was before) and that the certificate has been registered to the domain so I'll have to contact Tech' Support at my hosting company and see if they have any idea.
If I get a positive response I'll post it on here in case anyone else has the same problem.
Thanks again.

Newbie

Posts

Joined
Wed May 19, 2021 11:08 pm

Post by johnp » Thu May 20, 2021 5:26 pm

Did you try with a fresh htaccess.txt file with the force SSL code in?

Code: Select all

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 Patchworks101 » Thu May 20, 2021 5:33 pm

Hi John

Yes. I copied those lines from a previous reply that you had done for someone else, as well as updating the 2 x config.php files

Bob

Newbie

Posts

Joined
Wed May 19, 2021 11:08 pm

Post by khnaz35 » Thu May 20, 2021 5:58 pm

Bob,
I am also seeing the same error as you do.
https://prnt.sc/135vxc9

Further more checking for SSL on your website it seems it is not correctly install.
https://prnt.sc/135wap0
Who is managing your hosting service ?
If it is the hosting company You have to talk to them and ask them to install it properly.

As for Opencart there were only few steps which has been perviously indicated.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Patchworks101 » Thu May 20, 2021 6:04 pm

Hi
This is what I have in the .htaccess file. As far as I can tell, it's correct

Code: Select all

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]
RewriteEngine On 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://www.bmscatering.co.uk%{REQUEST_URI} [L,R=301]
Bob

Newbie

Posts

Joined
Wed May 19, 2021 11:08 pm

Post by xxvirusxx » Thu May 20, 2021 6:09 pm

1. From store settings enable Use SSL.
2. Edit both config files and change all http:// to https://
3. Temporary comment out or remove these lines

Code: Select all

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

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 khnaz35 » Thu May 20, 2021 6:10 pm

Try this way and see if it works for you.

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]]
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

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]

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Patchworks101 » Thu May 20, 2021 6:12 pm

Just heard back from my hosting company. Apparently there is actually a problem with the SSL cert'. They are trying to resolve it with the certification provider.

Newbie

Posts

Joined
Wed May 19, 2021 11:08 pm

Post by johnp » Thu May 20, 2021 6:15 pm

Patchworks101 wrote:
Thu May 20, 2021 5:33 pm
Hi John

Yes. I copied those lines from a previous reply that you had done for someone else, as well as updating the 2 x config.php files

Bob
So you temporarily moved Opencart to a sub folder and were left with an empty root? In that you put just a single page and a new htaccess.txt file with just the force SSL code?

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 khnaz35 » Thu May 20, 2021 6:17 pm

Well that part was also mentioned above.
Anyway Keep us updated if it got resolve.

Urgent Questions shoot here: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia

Post by Patchworks101 » Thu May 20, 2021 6:21 pm

Resolved thanks to you both (and tech' support at ionos). The problem lay with the certificate not having been correctly applied to the domain. That has now been done and I can access OpenCart, the store page loads correctly, and my daughter will be pleased.

Thank you to you both again.
Bob

Newbie

Posts

Joined
Wed May 19, 2021 11:08 pm

Post by johnp » Thu May 20, 2021 6:26 pm

We're always happy to help. :)

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 xxvirusxx » Thu May 20, 2021 7:04 pm

Fix www to https:// redirect issue.
viewtopic.php?t=183503

Resize logo and use small resolution.

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
Who is online

Users browsing this forum: No registered users and 94 guests