httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Coughlin, Michael J" <Michael.Cough...@opm.gov>
Subject RE: [users@httpd] RewriteRule problem
Date Fri, 08 Feb 2013 21:51:16 GMT
END is not a valid flag.  That generates a server error.

________________________________________
From: Boubouch [boubouch52@gmail.com]
Sent: Friday, February 08, 2013 4:46 PM
To: users@httpd.apache.org
Cc: users@httpd.apache.org
Subject: Re: [users@httpd] RewriteRule problem

Hi,

Could you try this

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


Le 8 févr. 2013 à 22:19, "Coughlin, Michael J" <Michael.Coughlin@opm.gov> 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@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message