I have a client who's URL's on his old site for cat pages were like so...
http://www.domain.com/category_code/product_code.html
I'm trying to find a way to replicate those in the new URI system so I can 301-redirect them to the new version of the URL which would be like so....
http://www.domain.com/product_name.html
I know I used to do this via .htaccess, but can't figure out how to set up that global redirect within the realm of the new URI system.
I know this is wrong, as it doesn't work, but I figured it's probably something similar to this.....
RewriteCond %{REQUEST_URI} ^/(.*)/(.*)
RewriteRule ^(.*)$ http://dev.thesafetyequipmentstore.com/%2 [R=301,L]
Any advice would be awesome.
http://www.domain.com/category_code/product_code.html
I'm trying to find a way to replicate those in the new URI system so I can 301-redirect them to the new version of the URL which would be like so....
http://www.domain.com/product_name.html
I know I used to do this via .htaccess, but can't figure out how to set up that global redirect within the realm of the new URI system.
I know this is wrong, as it doesn't work, but I figured it's probably something similar to this.....
RewriteCond %{REQUEST_URI} ^/(.*)/(.*)
RewriteRule ^(.*)$ http://dev.thesafetyequipmentstore.com/%2 [R=301,L]
Any advice would be awesome.
Comment