httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Jones <ja...@freedomnet.co.nz>
Subject [users@httpd] mod_rewrite fails
Date Mon, 18 Oct 2010 17:43:49 GMT
  can someone explain why neither of these rules work:_


Rule 1:_
RewriteCond %{HTTP_HOST}%{REQUEST_URI} ^(.*)(?!wp-login) [NC]
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L]


_Rule 2:_
RewriteCond %{REQUEST_URI} ^wp-login(.*)$
RewriteRule .? - [S=1]
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]


We are trying to rewrite all pages back to http except for one special 
page: wp-login. Any help would be greatly appreciated.

-- 
James Jones
+1-413-667-9199
james@freedomnet.co.nz


Mime
View raw message