I have a hard time to create rewrite rule for a redirect using part of an old URL. Example:
Old URL: http://www.example.com/news/index.php/2014/11/07/my-blog-post-from-o
Just match for the blocks until hyphen (-) is encountered:
-
RewriteRule ^news/index\.php/([^-]+-[^-]+-[^-]+).* /$1 [R=301,L,NC]