2011-02-15 56 views

回答

3

嘗試使用RedirectMatch並在正則表達式中包含「字符串結尾」$。

RedirectMatch permanent /A$ http://www.domain.com/A/B 
RedirectMatch permanent /A/$ http://www.domain.com/A/B 

編輯:下面的比賽可能工作有所好轉(全部)

RedirectMatch permanent .*/A$ http://www.domain.com/A/B 
RedirectMatch permanent .*/A/$ http://www.domain.com/A/B 
+0

的感謝!你的第二個建議有效! – chamaster 2011-02-16 21:11:53