2016-08-15 167 views
1

我想设置htaccess重定向所有的网站HTTPS除了一个单一的页面(www.realcoach.com/feed/podcasts)。以下似乎并没有工作。htaccess URL重写不起作用

# BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.9] 
<IfModule mod_rewrite.c> 

RewriteEngine on 
RewriteCond %{HTTPS} off [NC] 
RewriteCond %{REQUEST_URI} !^/feed 
RewriteRule !^feed($|/) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,NE,L] 

</IfModule> 
# END rlrssslReallySimpleSSL 

这仍然会将订阅源页面重定向到https。我错过了什么?

+0

也许 'HTTPSEverywhere' 在浏览器扩展? – hjpotter92

+0

不,它绝对与网站相关。 –

回答

0

你可以再次尝试如下:

RewriteCond %{HTTPS} off [NC] 
RewriteCond %{REQUEST_URI} !^/feed 
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] 
+0

同样的问题。我现在认为在安装过程中还有其他一些代码可能会覆盖这一点。 –