mod_rewrite fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux