2
我有这个网址:重写查询字符串
oldsite.com/profile.php?uid=10
我想将它改写为:
newsite.com/utenti/10
我怎样才能做到这一点?
更新:我写了这个:
RewriteCond %{QUERY_STRING} ^uid=([0-9]+)$ RewriteRule ^profile\.php$ http://www.newsite.com/utenti/$1 [R=301,L]
但是$ 1场完整的查询字符串,而不仅仅是用户ID。