2011-08-01 90 views
0

Apache的mod_rewrite的:阿帕奇重寫查詢字符串問題

如何rewite /?u=http://www.google.com/u/index.php?u=http://hk.yahoo.com

+0

你的意思重寫'/?u=http://www.google .com'到'/u/index.php?u=http://www.google.com'? –

+0

是............ – love

+1

請將您的答案移出您的問題到答案框中(您可以回答自己的問題),然後將答案標記爲已接受。 –

回答

1

解決:

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