Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: ocean10000
I have updated some urls from-
(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.
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
They actually just sent me this which works -
RewriteCond Host: (.*)
RewriteRule (/[^/]+/p/[^/_]+_[^/_]+)_9(?:\?.*)? http\://$1$2_3 [I,RP]
The problem is it catches things in other subfolders prior to the /p/
I need to limit it to /subfolder/p/....