mod_rewrite problem.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
crliuh
Forum Newbie
Posts: 1
Joined: Wed Dec 10, 2008 8:46 am

mod_rewrite problem.

Post 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:
Post Reply