我试图在某些页面上强制ssl,但也在目录上强制ssl。但我收到页面循环错误。这是我的htaccess文件:
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} dashboard
RewriteRule ^(.*)$ https://www.example.com/dashboard/$1 [R,L]
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_FILENAME} get_started_lp.php$
RewriteCond %{REQUEST_FILENAME} get_started.php$
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
基本上有人去了get_stared_lp或get_started或我想要SSL的仪表板。有什么建议吗?
答案 0 :(得分:0)
永不心。它最终成为Rackspace如何处理SSL的问题。欲获得更多信息: http://www.wreckedmagazine.com/jasonsmall/2010/09/14/force-ssl-on-a-rackspace-folder/