Redirect from /sub-directory/old-page to /new-page WordPress [duplicate]
I have a new website set up (same domain, new server, new WordPress set up) and one of the old pages has a different url to the new page.
The previous set up was:
The new set up is: ‘mywebsite.com/new-page’
My current rewrite (kindly provided via StackExchange) works great on the majority of pages (as they have the same url) but this page had its url changed. Is there an additional rule I can apply to get this working for this specific page?
Here’s the current code:
RewriteRule ^sub-directory/(.*) /$1 [R=302,L]