Actions
Bug #660
closedGET parameters are not set when rewrite rule is enabled
Status:
Invalid
Priority:
Normal
Category:
core
Target version:
-
ASK QUESTIONS IN Forums:
Description
How to reproduce¶
1. add below rewrite rule in lighttpd.conf
url.rewrite-once = ( "^/info\?.*" => "/info.php" )
2. create a php file under document root, called info.php, with the content:
<? phpinfo(); ?>
3. access /info?oook=1, rewrite rule will direct it to /info.php
_REQUESToook and _GEToook are not set at all, although
_SERVERREQUEST_URI is set to "/info?oook=1" correctly
on the other hand, if access /info.php?oook=1, everything is fine (_SERVERREQUEST_URI, _REQUESToook and _GEToook are all set properly)
-- liucougar
Updated by davojan over 18 years ago
It's not a bug. You should learn more about rewrite.
This will help you:
url.rewrite-once = ( "^/info(\?.*)?$" => "/info.php$1" )
Updated by moo over 18 years ago
- Status changed from New to Fixed
- Resolution set to invalid
Actions
Also available in: Atom