Apache 强制https://导致htaccess出现问题
我有一个htaccess文件,它强制所有东西加载一个特定的https地址 我们有两个域名,比如web.no和website.no web.no指向website.no,但我有一个子域dev.web.no,我不想重定向到website.no 规则是Apache 强制https://导致htaccess出现问题,apache,.htaccess,http,https,Apache,.htaccess,Http,Https,我有一个htaccess文件,它强制所有东西加载一个特定的https地址 我们有两个域名,比如web.no和website.no web.no指向website.no,但我有一个子域dev.web.no,我不想重定向到website.no 规则是 RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^ https://website.no/%{REQUEST_URI} [L,R=301] 如何对dev.web.no进行例外 您可以使用:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://website.no/%{REQUEST_URI} [L,R=301]
如何对dev.web.no进行例外 您可以使用:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !=dev.web.no
RewriteRule ^ https://website.no/%{REQUEST_URI} [L,R=301,NE]
我明白了,也许是同一个问题:D好运[1]: