【发布时间】:2013-11-21 18:54:51
【问题描述】:
我将 https:// 用于某些子目录(/login、/admininstration),为此我找到了一些示例 - 但另一方面,我必须确保所有其他页面都重定向到 http://。
现在,我通过链接将用户发送到 https://,但是当他们离开登录区域时,他们仍处于 https:// 模式。
我现在在标准配置中使用 RewriteCond:
SetEnv APPLICATION_ENVIRONMENT show
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.xxxseitexxx.de$ [NC]
RewriteRule ^(.*)$ http://www.xxxseitexxx.de/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ /index.php [NC,L]
RewriteRule !\.(js|ico|gif|jpg|jpeg|png|css|inc|pdf|csv|zip|rm|mp3|swf)$ index.php
提前致谢!
【问题讨论】: