Re: mod_rewrite fails

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

 



On Mon, Oct 18, 2010 at 1:43 PM, James Jones <james@xxxxxxxxxxxxxxxx> 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-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@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