我想将带有连衣裙的网址重定向到apparel-clothes/dresses
. 例如:
- abc.com/dresses
- abc.com/dresses/casual
- abc.com/dresses/evening-wear
- abc.com/dresses/little-black-dress
应该全部重定向到abc.com/apparel-clothes/dresses
. 我试图编写重定向规则,但它不起作用:
RewriteRule ^(.*)/dresses/(.*)$ $1/apparel-clothes/dresses/$2 [R=301,L]