Jump to content

RewriteRule that works on 1.3 server but not 2.0


tibberous

Recommended Posts

I have a script that uses RewriteRule to take a fake path and convert it to a script path with parameters.

 

The rule:

 

RewriteRule ^game/([0-9]*)/(.*)\.html$ game.php?gId=$1&fname=$2 [L,NC]

 

Expects a name like this:

 

http://www.mysite.com/game/21479/LOTR-Battle.html

 

It is supposed to use the first part as the gId parameter in the script, and the second part as the fname parameter. It looks right and runs on Apache 1.3, but on Apache 2.0 it doesn't send the parameters - it only converts it to the script name.

 

Does anyone know what might be causing this? Thanks

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.