Re: [users@httpd] mod_rewrite - server variable in CondPattern of RewriteCond

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

 



On Fri, Mar 11, 2005 at 04:01:00PM +0530, Antony Paul wrote:

> RewriteCond %{REQUEST_URI} ^/%{REMOTE_HOST} .*
> 
> This is giving a Systax error and  RewriteCond: cannot compile regular
> expression error.

Because your syntax is invalid. ;)

 From http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond:

Syntax: RewriteCond TestString CondPattern

You have *three* arguments to RewriteCond: 
    1) %{REQUEST_URI}
    2) /%{REMOTE_HOST}
    3) .*

What exactly are you trying to accomplish with this condition?

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


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