Apache重写查询字符串问题

Apache重写查询字符串问题,apache,mod-rewrite,Apache,Mod Rewrite,Apache mod_重写: 如何重新布线/?u=http://www.google.com至/u/index.php?u=http://hk.yahoo.com已解决: RewriteCond %{QUERY_STRING} ^u=(.*)$ RewriteRule ^index.(php|html)$ u/index.php?u=%1 [L] 你的意思是重写/?u=http://www.google.com至/u/index.php?u=http://www.google.com?请将您的

Apache mod_重写:

如何重新布线
/?u=http://www.google.com
/u/index.php?u=http://hk.yahoo.com

已解决:

RewriteCond %{QUERY_STRING} ^u=(.*)$
RewriteRule ^index.(php|html)$ u/index.php?u=%1 [L]

你的意思是重写
/?u=http://www.google.com
/u/index.php?u=http://www.google.com
?请将您的答案从问题中移入答案框(您可以回答自己的问题),然后将答案标记为已接受。