I have a WordPress site running on EC2. It is hosted in a directory, like this:
We are migrating to a new URL, so I duplicated the site in a new website:
I would like to redirect users accessing posts on the old domain, to the equivalent post on the new domain. I believe that mod-rewrite is the right tool to do this. However, my user has done something with the WordPress configuration on the new site that makes the URLs different.
I’m having trouble making this work - I’ve never used mod-rewrite and this seems to be a complex scenario. Any help?
Read more here: Rewriting WordPress post URL for new domain