Msg#: 4557536 posted 6:39 pm on Mar 22, 2013 (gmt 0)
I have one question about is it possible to create dynamic 301 redirect urls.
I have a dating site and the url format is like /dating/united_states_singles/. A few months ago, I changed it to /free-dating/united_states/ (added free and removed singles). When I checked on Google webmaster tool, both URLs (old and new) are indexed, which create duplicate title and description tags.
Is it possible to create 301 redirect for all old urls to new urls format?
Msg#: 4557536 posted 6:50 pm on Mar 22, 2013 (gmt 0)
welcome to WebmasterWorld, jennypretty!
it depends on if and how you can identify and define the pattern of the old urls translating to the new urls.
if: - all the old urls to be changed start with /dating/ - all the new urls start with /free-dating/ - all the old urls to be changed end with country_name_singles/ - all the new urls end with country_name/ then the answer is yes, you can do this with a single mod_rewrite directive using RewriteRule using capture groups in the pattern and backreferences in the substitution string.
if there's more going on than i assumed above then you will have to provide a comprehensive problem description.