我们正在尝试重定向一堆这样的类别URL:
Redirect 301 /table/ https://www.example.com/abc/
Redirect 301 /table/accessoires/ https://www.example.com/def/
Redirect 301 /table/accessoires/tablecloth/ https://www.example.com/ghj/
第一个重定向正常工作。但是为什么其他两个都不起作用?
答案 0 :(得分:0)
顺序很重要。更具体的规则应该放在首位。
Redirect 301 /table/accessoires/tablecloth/ https://www.example.com/ghj/
Redirect 301 /table/accessoires/ https://www.example.com/def
Redirect 301 /table/ https://www.example.com/abc/