我在TSO主机上有一个Perch Runway网站,在设置https://重定向时遇到问题
我尝试过的大多数方法都会导致重定向到错误页面
这是我当前的htaccess
<IfModule mod_rewrite.c>
# Perch Runway
RewriteEngine On
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
RewriteCond %{REQUEST_URI} !^/perch
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /perch/core/runway/start.php [L]
</IfModule>但这在除主页之外的所有页面上都有效,在主页上我会被发送到/core/runway/start.php
发布于 2017-02-15 20:47:28
我使用了不同的https重定向,这可能值得一试:
<IfModule mod_rewrite.c>
# Perch Runway
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R]
RewriteCond %{REQUEST_URI} !^/perch
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* /perch/core/runway/start.php [L]
</IfModule>https://stackoverflow.com/questions/39954883
复制相似问题