Having some problems with this below; Specifically with the first rule.
^pages/articles/marketArticles\.php?id=31 I think here is the problem
, So basically what I'm trying to achieve is that when a user goes to /pages/articles/marketArticles.php?id=31 the user is redirected to /01-02-2022/Top-5-Digital-Assets-to-watch-out-for-in-2022/ this rule has to work with multiple different ids.
RewriteRule ^pages/articles/marketArticles\.php?id=31 /01-02-2022/Top-5-Digital-Assets-to-watch-out-for-in-2022 [R=301,L]
RewriteRule ^01-02-2022/Top-5-Digital-Assets-to-watch-out-for-in-2022/?$ /pages/articles/marketArticles.php?id=31 [END]
With the above example when the user goes to /01-02-2022/Top-5-Digital-Assets-to-watch-out-for-in-2022/ the user can view the page. When the user goes to pages/articles/marketArticles.php?id=31 the user is presented the page but is not redirected to the new url.