Hi
I have updated my website to now use the codeigniter framework my new urls are like the following example.com/index.php/home/page/page-title
The old urls are example.com/index.php?option=com_content&view=article&id=249
Ideally I want to do a redirect for all links formatted in the old way to the new links but there are a lot of pages on the website and the titles/id do not match.
I do not want to write an individual rule for every page. eg
Redirect 301 /oldpage.html http://www.example.com/newpage.html
I do not mind having all the wrongly formated urls be redirected to the home page/404 page if this easier.
I can see this requires a more complicated rule that uses regex something I have never been very good at.
Any help appreciated
Thanks