Project

General

Profile

Actions

Bug #660

closed

GET parameters are not set when rewrite rule is enabled

Added by Anonymous almost 18 years ago. Updated over 15 years ago.

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

Actions #1

Updated by davojan almost 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" 
)
Actions #2

Updated by moo almost 18 years ago

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

Updated by stbuehler over 15 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom