Post by TomSut » Fri Jun 21, 2019 7:06 pm

Iv'e installed the SSL Certificate, changed both config files from http to https, put the rewrite code into .htaccess file.

https site works fine but customers are not getting redirected when they click on old http links on old newspaper articles, google etc.

http://pubstops.co.uk/index.php?route=p ... uct_id=132
https://pubstops.co.uk/index.php?route= ... uct_id=132

Any thoughts where iv'e gone wrong?

Thanks

Tom

Opencart 3.0.2.0

New member

Posts

Joined
Wed Nov 01, 2017 10:41 pm

Post by dparakhiya » Fri Jun 21, 2019 7:44 pm

Share your .htaccess rewrite code...

For quick, professional OpenCart support
Online
contact me on skype : dparakhiya_1
email : dipneshp@gmail.com


User avatar
New member

Posts

Joined
Fri Jul 28, 2017 1:13 pm
Location - India

Post by straightlight » Fri Jun 21, 2019 7:47 pm

Please use the forum / Google search. Lots of solutions about those requests: viewtopic.php?f=202&t=211813&p=755463#p755463

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.


Regards,
Straightlight
Opencart.com Administrator / Quality Assurance Analyst / Programmer


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by TomSut » Fri Jun 21, 2019 8:05 pm

RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^pubstops\.co\.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www\.pubstops\.co\.uk$
RewriteRule ^/?$ "https\:\/\/pubstops\.co\.uk\/" [R=301,L]

New member

Posts

Joined
Wed Nov 01, 2017 10:41 pm

Post by EvolveWebHosting » Fri Jun 21, 2019 9:19 pm

If your hosting provider is updated to cPanel v80, you can also use the new HTTPS redirection manager: https://blog.cpanel.com/force-https-redirection/

Image
https://www.evolvewebhost.com
$10.49 .com Registration and $9.99 .com Transfers in now
Guaranteed top level opencart performance and support. Risk free 30 day money back guarantee & free transfers.
Image


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by TomSut » Fri Jun 21, 2019 11:49 pm

Thought i was on for a winner with cPanel but our host isn't using the new version.

Also tried in .htaccess

# redirect any request not having www to ssl with www
RewriteCond %{HTTP_HOST} ^pubstops\.co\.uk [NC]
RewriteRule ^(.*)$ https://www.pubstops\.co\.uk/$1 [L,R=301]

That doesn't work.

New member

Posts

Joined
Wed Nov 01, 2017 10:41 pm

Post by letxobnav » Sat Jun 22, 2019 10:58 am

Code: Select all

	RewriteCond %{HTTPS} off
	RewriteCond %{REQUEST_URI} !.*\.(ico|cur|mp3|mpeg|webp|svg|ttf|eot|woff|woff2|gif|jpg|jpeg|png|swf)
	RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [R=301,L]

Crystal Light Centrum Taiwan
Extensions: MailQueue | SUKHR | VBoces

“Data security is paramount at [...], and we are committed to protecting the privacy of anyone who is associated with our [...]. We’ve made a lot of improvements and will continue to make them.”
When you know your life savings are gone.


User avatar
Active Member

Posts

Joined
Fri Aug 18, 2017 4:35 pm
Location - Taiwan

Post by EvolveWebHosting » Sun Jun 23, 2019 1:26 am

TomSut wrote:
Fri Jun 21, 2019 11:49 pm
Thought i was on for a winner with cPanel but our host isn't using the new version.

Also tried in .htaccess

# redirect any request not having www to ssl with www
RewriteCond %{HTTP_HOST} ^pubstops\.co\.uk [NC]
RewriteRule ^(.*)$ https://www.pubstops\.co\.uk/$1 [L,R=301]

That doesn't work.
Could you PM me the contents of your .htaccess file? I can then review and edit it and send it back to you. You can then make a backup of your current .htaccess file and try the changes I send to you.

Image
https://www.evolvewebhost.com
$10.49 .com Registration and $9.99 .com Transfers in now
Guaranteed top level opencart performance and support. Risk free 30 day money back guarantee & free transfers.
Image


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA
Who is online

Users browsing this forum: No registered users and 25 guests