Project

General

Profile

Bug #660

GET parameters are not set when rewrite rule is enabled

Added by Anonymous almost 13 years ago. Updated over 10 years ago.

Status:
Invalid
Priority:
Normal
Assignee:
-
Category:
core
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:

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

History

#1

Updated by davojan almost 13 years ago

It's not a bug. You should learn more about rewrite.
This will help you:


url.rewrite-once = (
   "^/info(\?.*)?$" => "/info.php$1" 
)
#2

Updated by moo almost 13 years ago

  • Status changed from New to Fixed
  • Resolution set to invalid
#3

Updated by stbuehler over 10 years ago

  • Status changed from Fixed to Invalid

Also available in: Atom