2012-10-21 24 views

回答

0

它看起來像你錯過了?從查詢字符串除了&。假設你只是想匹配這個網址(PID = 5127) -

RewriteEngine On 
RewriteBase/
RewriteRule (option=com_rpl)(view=propertyshow)(pid=5127) /?$1&$2&$3 [R=301,L] 

如果你想匹配任何pid值1到4位長

RewriteEngine On 
RewriteBase/
RewriteRule (option=com_rpl)(view=propertyshow)(pid=\d{1,4}) /?$1&$2&$3 [R=301,L] 
0

地址編碼amersand(& )到%26是做到這一點的正確方法。 replace & by %26