Forum Moderators: phranque
redirect 301 /blog/blog5.php/tag/virtual+sound+illusion: http://web420.com/blogs/tag/virtual-sound-illusion/ Redirect lines. RewriteRule instead. In this way, using pattern matching, many rules invoking redirects can be condensed to just a few. This method can be used when there is a simple relationship between the old and new URLs, specifically when URL parts in the request can be captured and reused in the target URL.
RedirectMatch 301 ^/blog/blog5\.php/tag/([^+]+)\+([^+]+)\+([^+]+)\+([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2-$3-$4-$5/
RedirectMatch 301 ^/blog/blog5\.php/tag/([^+]+)\+([^+]+)\+([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2-$3-$4/
RedirectMatch 301 ^/blog/blog5\.php/tag/([^+]+)\+([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2-$3/
RedirectMatch 301 ^/blog/blog5\.php/tag/([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2/
RedirectMatch 301 ^/blog/blog5\.php/tag/([^+:]+):$ http://example.com/blogs/tag/$1/
RewriteRule ^blog/blog5\.php/tag/([^+]+)\+([^+]+)\+([^+]+)\+([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2-$3-$4-$5/ [R=301,L]
RewriteRule ^blog/blog5\.php/tag/([^+]+)\+([^+]+)\+([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2-$3-$4/ [R=301,L]
RewriteRule ^blog/blog5\.php/tag/([^+]+)\+([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2-$3/ [R=301,L]
RewriteRule ^blog/blog5\.php/tag/([^+]+)\+([^+:]+):$ http://example.com/blogs/tag/$1-$2/ [R=301,L]
RewriteRule ^blog/blog5\.php/tag/([^+:]+):$ http://example.com/blogs/tag/$1/ [R=301,L]