I'm in the process of moving content from one CMS to a different CMS. The url structure is different so I would like to replace some of the urls using php.
The old url is
href="book-online?cid=123"
where the value of cid is going to be different for each call to this link.
I want to be able to change all these links to something like
href="/Book-online.htm?cid=[newPageId]"
The id of the pages have changed so I need to update those as well but that's not a problem.
I was thinking something like preg_replace might work but I've little experience with regular expressions.
I'm open to any other solutions if you have them.