Page 1 of 1

mod_rewrite problem.

Posted: Wed Dec 10, 2008 9:01 am
by crliuh
here's the issue
i would like to rewrite this url http://crliuh.net63.net/kaisheng/user.php?user=gugujiao into this http://crliuh.net63.net/gugujiao

so i put this things in my .htaccess

Options +Indexes
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\/?$ kaisheng/user.php?user=$1 [QSA,L]

it works for me when i type http://crliuh.net63.net/gugujiao and its show the content of http://crliuh.net63.net/kaisheng/user.php?user=gugujiao

but when i type http://crliuh.net63.net this url, its show (unrecognise user), which means http://crliuh.net63.net/kaisheng/user.php?user= 8O

so, is there any solution? :wink: