Re: Rewrite all except one case

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

 



On Apr 16, 2009, at 3:07 AM, Dietmar.Mueller@xxxxxxxxxxxx wrote:

Hi all,

I play a long time with rewrite to get follow rule:

server/foo/(.*) should proxied to server/abc/$1

This works with
RewriteRule /foo/(.*) /abc/$1  [P]

then all requests to directory /foo are proxied (also
with arguments) to /abc/

but now I need one exception:

/foo should be proxied / or redirected to /abc/ers


I try this with RewriteCondition (PATH_INFO and SCRIPT_FILENAME) but
without success.
The condition is either always true or false in all cases.
I don't find the right Condition or ServerVariable



Try using RewriteCond and %{REQUEST_FILENAME}. If that doesn't help, what does your condition look like? Did you use RewriteLog to see what the server is trying to match against?

Doug Bell -- Senior Developer, Plain Black Corp.
all that groks is






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