Re: mod_rewrite problem

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

 



> # RewriteRule ^(.*)$ coffee.cgi?type=$1

> But apache2 erroneously outputs 'You ordered a coffee.cgi', instead of 'You ordered a mocha'.

When you make a substitution in htaccess with mod_rewrite, the
resulting substitution gets fed back in and rewrites get a chance to
run against the new URL.

So you want to protect this rule so it does not match requests to
coffee.cgi, the simplest way being to prefix with

  RewriteCond %{REQUEST_URI} !=/coffee.cgi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-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