tags:

views:

46

answers:

2

My site has the following url structure:

/shoe/view/3
/shoe/view/5
/shoe/view/86
/shoe/view/124

I want to 301 redirect everything using htaccess to a new structure like so:

/item/3
/item/5
/item/86
/item/124
+1  A: 

This should do the job:

RedirectMatch 301 \/shoe\/view\/(.*)$ http://www.example.com/item/$1
David Dorward
+1  A: 

What about something like this :

RewriteEngine on
RewriteRule ^shoe/view/(.*)$ /item/$1 [R=301]
Pascal MARTIN