【发布时间】:2012-10-27 16:33:23
【问题描述】:
我正在使用以下 httaccess 内容,强制重写 url 以使用 https 而不是 http
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.mydomain.com/$1 [L]
但它总是越来越, 页面未正确重定向
Firefox has detected that the server is redirecting the request for this address
in a way that will never complete.
This problem can sometimes be caused by disabling or refusing to accept
cookies.
我使用了许多其他解决方案,但总是得到这个......
【问题讨论】:
-
SERVER_PORT 可能无法作为此处的测试得出结论,另请参阅 stackoverflow.com/questions/4042962/…
标签: php apache .htaccess https