0
我的网站具有以下网址结构:重定向动态页面到一个新的动态页面
/shoe/view/3
/shoe/view/5
/shoe/view/86
/shoe/view/124
我想301使用htaccess的一个新的结构,像这样重定向一切:
/item/3
/item/5
/item/86
/item/124
我的网站具有以下网址结构:重定向动态页面到一个新的动态页面
/shoe/view/3
/shoe/view/5
/shoe/view/86
/shoe/view/124
我想301使用htaccess的一个新的结构,像这样重定向一切:
/item/3
/item/5
/item/86
/item/124
这应该做的工作:
RedirectMatch 301 \/shoe\/view\/(.*)$ http://www.example.com/item/$1
大约是这样的内容:
RewriteEngine on
RewriteRule ^shoe/view/(.*)$ /item/$1 [R=301]