301 variable URL redirect

I’m unable to do a 301 redirect rule for a website i’m redoing. This is what the redirection must do
Original:
domain.com/blog/4-blog/49-name-of-post

New:
domain.com/name-of-post/

The 49- depends on post, meaning is different in all posts, but always 2 numbers and
So 2 directories now disapear, also 3 first characters of the page name and the final slash.

Any ideas to accomplish that without doing all redirects by hand?

Thank you


Source: apache

Leave a Reply