在这件事上我绞尽脑汁。我正在使用mod_rewrite将非https请求转换为https。
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} !^/path/file.htm$
RewriteCond %{HTTP_HOST} !^devel\.example\.com$ [NC]
RewriteRule ^/?(.*) https://www.example.com/$1 [last,redirect=301]除了我的devel站点没有被排除在SSL重写规则之外(devel.example.com被重写为www.example.com),它可以像预期的那样工作。上面的条件(REQUEST_URI)工作正常。这都是在VirtualHost设置下的我的站点文件中设置的。
发布于 2019-03-29 21:36:13
事实证明,这是一个Coldfusion应用程序变量,由于一些缓存问题而变得一团糟。
https://stackoverflow.com/questions/55400460
复制相似问题