How to get $_GET['id'] when using .htaccess?
It should be only the id number but it 开发者_如何学编程has profile/
prefix now which broke everything.
This is the rule I use:
RewriteCond %{REQUEST_URI} /v0\.3/profile/
RewriteRule ^(.+)$ /v0.3/profile.php?id=$1 [QSA,L]
Change you RewriteRule to:
RewriteRule profile/(.+)$ /v0.3/profile.php?id=$1 [QSA,L]
精彩评论