On Mon, Oct 18, 2010 at 1:43 PM, James Jones <ja...@freedomnet.co.nz> wrote:
> can someone explain why neither of these rules work:

Without a rewritelog or a description of what URL is/is-not rewritten
as you expect, it will be difficult.

What context are your rules in?  htaccess, <Directory>, <VirtualHost> ?

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

Aside from being overly complicated, does this rewrite too much or too little?

>
>
> Rule 2:
> RewriteCond %{REQUEST_URI} ^wp-login(.*)$

REQUEST_URI always begins with a slash so the rest of this is a no-op.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to