0
Apache的mod_rewrite的:阿帕奇重寫查詢字符串問題
如何rewite /?u=http://www.google.com
到/u/index.php?u=http://hk.yahoo.com
Apache的mod_rewrite的:阿帕奇重寫查詢字符串問題
如何rewite /?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'? –
是............ – love
請將您的答案移出您的問題到答案框中(您可以回答自己的問題),然後將答案標記爲已接受。 –