Regular expressions and I aren't friends. ;)
I need to redirect a file request using htaccess. The file being requested is:
http://example.com/blogs/myblog/2014/05/ready_130_tourist_in_the_wild.htm
I need to remove the "ready_130_" (numbers will vary) as well as change the file extension from .htm to .html
I've tried several incarnations of things, most recently this but it throws a 500 server error and I'm stuck now:
RewriteRule (blogs/myblog/)(\d{0,4}/)(\d{0,2}/)ready_[0-9][0-9][0-9]_(.*) http://example.com/$1$2$3$4l [R=301,L]
Any help offered would be appreciated. Thanks.