RE: Odd? mod_rewrite behavior

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

 



Thanks for that lead. These rules ARE in a 'Directory' block so this is the case. It looks like I can resolve this by placing a 'catch-all' after the first 'xyz-static-content' rewrite:

RewriteRule ^xyz-static-content_[A-Z0-9a-z._-]+/(.*)$ xyz-static-content/$1
RewriteRule ^xyz-static-content - [L]

Do you see any more straight-forward or efficient way to handle this?

Thanks,
-Kimmel


Date: Fri, 3 Oct 2014 13:35:03 -0400
From: covener@xxxxxxxxx
To: users@xxxxxxxxxxxxxxxx
Subject: Re: [users@httpd] Odd? mod_rewrite behavior


On Fri, Oct 3, 2014 at 1:31 PM, Lesley Kimmel <ljkimmel99@xxxxxxxxxxx> wrote:
It seems that even the 'xyz-static-content' requests are falling through to, and matching, the proxy statement despite the 'L|Last' flag. Can anyone explain this behavior? I'm trying to use the second set of rules to avoid having to rewrite the situation where the user requests just '/xyz' to '/xyz/'.

​The manual has cautions about the L flag and per-directory (htaccess) rewrites.  When you make a substitution in htaccess, the whole thing starts over.



[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