2012-04-03 36 views
0

我试图在特定页面上强制使用ssl,但也在目录上。但我得到一个页面循环错误。这是我的htaccess文件:仅在特定页面上使用.htacces强制SSL

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。有什么建议么?

回答

相关问题