opencart中的https重定向问题

时间:2017-12-19 04:15:50

标签: php .htaccess opencart

我已经在我的网站上完成了安全保护(https),如果我打开我的网站意味着它显示为(http://www.kuberansilks.in/),但只是一次刷新意味着如果我打开我的网站意味着需要https它将打开起始阶段请帮助我(我使用aws服务器)。

我的htaccess代码请检查一下。

 # SEO URL Settings
RewriteEngine On
# 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 . https://%{HTTP:Host}%{REQUEST_URI} [L,R=permanent]
#RewriteRule ^(.*)$ https://www.kuberansilks.in/$1 [R,L]
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP_HOST} ^(www\.)?kuberansilks\.in$ [NC]
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^kuberansilks\.in [NC]
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.kuberansilks.in/$1 [R,L]
RewriteRule ^sitemap.xml$ index.php?route=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]

0 个答案:

没有答案