我正在更改永久链接结构,需要使用此结构重定向旧链接..................
www.sitename.com/stores/storename
到新:
www.sitename.com/coupon-codes/storename
我正在使用wordpress,尝试使用此重写规则但不起作用....
Redirect permanent stores/storename http://www.sitename.com/coupon-codes/storename
答案 0 :(得分:0)
在你的htaccess文件中,你这样做。
redirect 301 /stores/storename http://www.sitename.com/coupon-codes/storename
redirect 301 /stores/storename1 http://www.sitename.com/coupon-codes/storename1
redirect 301 /stores/storename2 http://www.sitename.com/coupon-codes/storename2
redirect 301 /stores/storename3 http://www.sitename.com/coupon-codes/storename3