My user profile URL 开发者_Python百科looks like this: http://mysite.com/profile.php?user=Rango
and I want to make it like: http://mysite.com/Rango
Maybe somebody can help with an example? Thank you very much.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /profile.php?user=$1 [L,QSA]
精彩评论