I'm migrating the content of a Wordpress blog to EE. The old blog has this URL structure:
/news/2012/08/08/2013-schedule/
And I need to redirect to this:
/news/post/2013-schedule/
At the moment I am using this .htaccess redirect:
RedirectMatch 301 /news/([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ /news/post/$4
But it's resulting in this URL:
/news/post/2013-schedule/?/news/2012/08/08/2013-schedule/
This is not the end of the world, because I get the right results, despite the extra URL segments, but I'd really rather they went away.
Any help?
FWIW, I'm using the EllisLab-approved redirect method for removing index.php.