Re: [users@httpd] mod_rewrite

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

 



Axel-Stéphane SMORGRAV wrote:
Rules below would be tested, but they wouldn't match unless the pattern starts with scheme + :// + url-path.

unless the RewriteCond pattern starts with /. The above matches just fine.

I meant this hypothetical case

RewriteRule ^/a /b [R]
RewriteRule ^/b /c

Without the L-flag, and after /a has been substituted with /b, the second rule would be tested not against /b but against http://[host]/b, so the result is not /c.
So removing the L flag in that case won't change r->filename to /c

while using

RewriteRule ^/a /b [R]
RewriteRule /b /c

would now end up in /c and no external redirection takes place at all.

--
Robert

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