Re: RewriteRule problem

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

 



Sorry i mean

>> RewriteRule ^(t.*)$ test.php?req=$1 [NC,END]

The flags END are stronger than L and may be you loop from testing123 to test.php both matching

Le 8 févr. 2013 à 22:46, Boubouch <boubouch52@xxxxxxxxx> a écrit :

> Hi,
> 
> Could you try this
> 
>> RewriteRule ^(t.*)$ test.php?req=$1 [NC,END]
> 
> 
> Le 8 févr. 2013 à 22:19, "Coughlin, Michael J" <Michael.Coughlin@xxxxxxx> a écrit :
> 
>> The request:
>> 
>> www.mysite.com/testing123
>> 
>> The rule:
>> 
>> RewriteRule ^(testing.*)$ test.php?req=$1 [NC,L]
>> 
>> test.php properly renders the querystring "req=testing123" (its only purpose to verify the querystring)
>> 
>> BUT, 
>> 
>> RewriteRule ^(t.*)$ test.php?req=$1 [NC,L]
>> 
>> gives me:  "req=test.php".
>> 
>> I don't get it.  Why is $1 backreferenced as "test.php"?  In fact, any string before (testi.*) gives me test.php
>> , but anything after gives me the testing123.  Some strange lexical order thing going on?
>> 
>> Thanks
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>> 

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