Post by keywordstudio » Fri May 05, 2017 9:05 pm

Hi guys, i have a problem with https, i alredy set all the websitewith https from panel, htaccess and config.

But there is some problem when someone type in the address bar without https ex: http://www.test.it it show the website correctly but without SSL , i alredy readed all topic talks about this problem, but no one resolve this situation, some codes show me infinite redirect loop others just doesn't work.

Actually my code is:

Code: Select all

RewriteEngine On
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) 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]
Alredy tried with:

Code: Select all

--
RewriteRule ^([^?]*) https://www.yoursite.com/index.php?_route_=$1 [R,L,QSA]  
-- 
RewriteCond %{HTTPS} off 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R,QSA]
--
#RewriteCond %{SERVER_PORT} 80 
#RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R=301,L]
No one work correctly, someone fixed this problem?

User avatar
Newbie

Posts

Joined
Thu Feb 09, 2017 12:32 am

Post by IP_CAM » Sat May 06, 2017 12:50 am

check this Page, to find a zip File, containing most important infos on this matter:
viewtopic.php?f=190&t=171302&p=656833#p656833
Good Luck ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 9 guests