Forum Moderators: phranque

Message Too Old, No Replies

mod_rewrite replaces + with a space

         

Skeleton

2:48 am on Mar 19, 2005 (gmt 0)

10+ Year Member



i have this rule :

RewriteRule ^([^/.]+)\.htm$ /goto.php?p=$1 [L]

and when i have called something like this :

goto.php?p=x%2By
(actually goto.php?p=x+y)

i am getting the correct result p="x+y" in php file which i want.

But when i called like this :

x%2By.htm
(this is actually x+y.htm)

i am getting p="x y", it returns a space char instead of a plus char.

can anybody help me? thank you!

sitz

3:25 am on Mar 25, 2005 (gmt 0)

10+ Year Member



What does the PHP code that pulls the 'p' value from the query string look like? Have you verified that mod_rewrite is doing the proper thing with RewriteLog / RewriteLogLevel?