我想重定向/重寫規則的URL時,在它裏面 例如特殊參數 /後/路/?代碼= 1 重定向到 /後/路/URL重寫,如果GET參數
我不知道,但是這不這裏工作
RewriteEngine on
RewriteBase/
RewriteRule ^.*code=1.*$ /post/path/ [L]
,如果我跑http://domain.com/post/path/?code=4/oWTYGaoOsyts 會有什麼變化。
[REQUEST_URI] => /post/path/?code=1/oWTYGaoOsyts
[SCRIPT_NAME] => /index.php
[PHP_SELF] => /index.php
只是一個例子,它是正確的 – dazzafact