I have a WordPress site running on EC2. It is hosted in a directory, like this:

www.olddomain.ca/blog

We are migrating to a new URL, so I duplicated the site in a new website:

www.newdomain.com

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.

An example:

http://www.olddomain.ca/blog/?p=296 becomes http://www.newdomain.com/index.php/p296

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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: