在apache 的 .htaccess 中
一般來是用來設定rewrite
那之前有遇到一些問題 所以在這邊做個註記
QSA 讓網址傳值接續
RewriteRule test.html test.php [QSA]
讓要求 test.html?a=1 時
也會等於 test.php?a=1
基本上是這樣
官網上面是這樣寫
Appends any query string from the original request URL to any query string created in the rewrite target
也就是將query string皆在rewrite後面
官網上還有其他用法可以參考
http://httpd.apache.org/docs/current/mod/mod_rewrite.html
希望對您有幫助
留言板
歡迎留下建議與分享!希望一起交流!感恩!