Web Hosting Talk







View Full Version : query string lost after mod_rewrite


cfraider
11-01-2004, 01:26 PM
RewriteEngine On
RewriteRule ^/do/([0-9]+)$ /do.php?no=$1 [QSA,L]
I'm trying to achieve a simple mod_rewrite process but somehow the query string is lost when I try to load the mod_rewrite-d URL (loading the script normally, eg. do.php?no=4, works just fine). The $_GET array is empty while trying so. Please help.

gogocode
11-02-2004, 06:59 AM
Originally posted by cfraider
I'm trying to achieve a simple mod_rewrite process but somehow the query string is lost when I try to load the mod_rewrite-d URL (loading the script normally, eg. do.php?no=4, works just fine). The $_GET array is empty while trying so. Please help.

Do a print_r($_SERVER), this might expose what is going on.