Forum Moderators: phranque
http://example.com/music/80s-Hits/ to http://example.com/80s-Hits/
or
http://example.com/banda/x-men-80 a http://example.com/x-men-80
It can to work?:
RedirectPermanent http://example.com/genero/80s-Hits/ http://example.com/80s-Hits/
also, the person ask me about the 301 redirection so i was thinking maybe use all in one, i would like create some lines where i can redirect all the music types (80',70',etc) and music bands, maybe with some *? (im not very good with regular expressions)
thanks in advance if someone can help me, thanks!
tic
[edited by: jdMorgan at 4:22 pm (utc) on Feb. 27, 2009]
[edit reason] example.com [/edit]
RedirectRule ^[^/]+/([^/]+)/$ http://www.example.com/$1/ [R=301,L] OR
RedirectRule ^[^/]+/([^/]+)$ http://www.example.com/$1 [R=301,L] You need to decide if your canonical URL should end with a trailing slash or not. Without is likely best. Your examples were inconsistent: one with, one without.
Maybe this?
RedirectRule ^[^/]+/([^/]+)[b]/?[/b]$ http://www.example.com/[b]$1 [R[/b]=301,L]