Forum Moderators: open
I have updated some urls from-
www.site.com/cellular/p/*_*_15
to www.site.com/cellular/p/*_*_8
(the *'s to mean a dynamic value such as mo_clip_ or no_case_)
I have been trying to setup a 301 redirect for the _15 to the _8 so that google will remove the _15 from the search results.
The guys at helicontech have been great but have not been able to provide a working redirect here. My impression is they are giving me more of a rewrite than a redirect.
They have recommended this -
RewriteRule /([^/]+)/p/([^/_]+)_([^/_]+)_15 $1/p/$2_$3_8 [I,RP,L]
It does not do a redirect though as the url in the _15 page does not change to _8.
Any help would be appreciated.
Worst case, we do run the website through an apache proxy and I could try to do this through .htaccess but would prefer to do it at the server versus proxy level.
Thanks
I think you have a couple of things going on, one of which, you're negating characters (slashes), but you're not including anything (\w, .*, \d...)
I think it should be something like:
/(\w+)/p/(\w+)_(\w+)_15 $1/p/$2_$3_8 [I,RP,L]
where \w are letters, use \d for numbers
Chip-