規則:僅當+
附帶%252C+
時,將所有包含%252C+
的URL重定向到,-
,並將+
重定向到-
。如果在htaccess 301中將URL中任意位置的特殊字符重定向到另一個字符?
e.g1:http://www.example.com/FortWorth%252C+TX/
到:http://www.example.com/FortWorth,-TX/
e.g2:http://www.example.com/Fort+Worth%252C+TX/
到:http://www.example.com/Fort-Worth,-TX/
e.g3:http://www.example.com/Fort+Worth/
到:http://www.example.com/Fort+Worth/
(不應該重定向這個)
注意:請注意,您的代碼不應只用於上述網址,還應包含所有使用上述規則的網址。
這是一個奇怪的雙編碼的網址... – Sumurai8
誠然,任何想法,我的朋友? – Smith