Post by hacjsu » Wed Apr 01, 2020 4:54 am

hello guys i'm having issue here i puted .htaccess

Code: Select all

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.myserver.br/$1 [R,L]
changed config files in admin and catalog to force https and nothing happen :( but site still show insecure the index page www.trololo.com.br

I have followed this tutorial

viewtopic.php?t=103177

But the site.still show insecure

I don't know what to do anymore :(

I also did this too

https://support.exabytes.com.my/en/supp ... with-https

My site www.trololo.com.br , big thanks to everyone
Last edited by straightlight on Wed Apr 01, 2020 5:15 am, edited 1 time in total.

New member

Posts

Joined
Sat Oct 07, 2017 9:16 am

Post by opencartmart » Wed Apr 01, 2020 2:58 pm

The codes are correct. Try putting your redirection code above the opencart code block. It will be like the following:

Code: Select all

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]

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]

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 paulfeakins » Wed Apr 01, 2020 6:49 pm

Use this:

Code: Select all

RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
https://stackoverflow.com/questions/408 ... s-to-https

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by hacjsu » Wed Apr 01, 2020 7:39 pm

problem solved!!

Code: Select all

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.trololo.com.br/$1 [R,L]
Last edited by straightlight on Wed Apr 01, 2020 7:56 pm, edited 1 time in total.
Reason: Added code tags.

New member

Posts

Joined
Sat Oct 07, 2017 9:16 am
Who is online

Users browsing this forum: No registered users and 417 guests