Apache opencart htaccess强制ssl获取错误重定向循环

Apache opencart htaccess强制ssl获取错误重定向循环,apache,.htaccess,mod-rewrite,ssl,opencart,Apache,.htaccess,Mod Rewrite,Ssl,Opencart,im已将我的opencart配置设置为使用SSL, 然后,当用户在地址中未使用https强制使用https时,我希望重定向 我正在浏览一本教程 Options+FollowSymlinks #防止Directoy上市 选项-索引 #阻止直接访问文件 命令拒绝,允许 全盘否定 #搜索引擎优化URL设置 重新启动发动机 重写cond%{SERVER_PORT}80 重写规则^(.*)$https://www.yourdomain.com/$1[R,L] #如果您的opencart安装没有在主web

im已将我的opencart配置设置为使用SSL, 然后,当用户在地址中未使用https强制使用https时,我希望重定向

我正在浏览一本教程

Options+FollowSymlinks
#防止Directoy上市
选项-索引
#阻止直接访问文件
命令拒绝,允许
全盘否定
#搜索引擎优化URL设置
重新启动发动机
重写cond%{SERVER_PORT}80
重写规则^(.*)$https://www.yourdomain.com/$1[R,L]
#如果您的opencart安装没有在主web文件夹上运行,请确保您的文件夹在ie中运行。/been/shop/
重写基/
重写规则^sitemap.xml$index.php?route=feed/google_sitemap[L]
重写规则^googlebase.xml$index.php?route=feed/google_base[L]
重写规则^download/(.*)/index.php?route=error/not_found[L]
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写条件%{REQUEST\u URI}!。*\。(ico | gif | jpg | jpeg | png | js | css)
RewriteRule^([^?]*)index.php?_route_uu=$1[L,QSA]
但我在chrome中发现了错误
此网页有重定向循环

在opencart中打开https是否执行重定向?您可能与PHP和.htaccess有冲突的规则。@PanamaJack我不知道,我是opencart的新手。那么HTA的访问权限是否正常?
Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.(tpl|ini|log)">
 Order deny,allow
 Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
# 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=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^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]