Auto Redirect all URL’s before domain change

  • Hi. You have a great product. Thank you for developing it.

    I need to change my domain to I am using WPMUDEV solutions (NGINX server) but I cannot access the server configuration. When I set a new domain as the main domain, all links on the server side will change and no problem, but each old link, e.g., is redirected e.g. from the search engine to the new home page of the new domain.

    When I was using APACHE, it was enough to enter a short code in .htaccess and all links in the old domain directed to their counterparts in the new domain. There was no problem with SEO and posts shared on e.g. Facebook.

    Now I don’t know how to automatically redirect all links to their counterparts in the new domain. Do I have to do it manually after changing my domain?

    Maybe your redirect plugin is able to add some automatic commands?


    I also need info on how to add condition to change all tag links. Example: abcd / com / tag / example I want to change the word “tag” to “topic”, so the link should look like this: but you have to do it en masse, i.e. around 500 links. Do you know any command to type to make all links automatically redirected?

    Thank you very much and have a good day.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank yo for getting in touch with us.

    Rank math redirection usually and only redirects URLs from the current domain. This means that to redirect URLs from your Old domain to your new domain, you will need to have access to your old domain. If you do have access, then you can simply use the following regex to redirect all URLs to their related URLs in the new domain. Here is the regex redirect:

    Source: /(.*) 

    If you wish to modify the slugs, you can then do this from your new domain.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Thanks. I’ve already dealt differently. I created a new website on an old domain on Apache and made the rule. Thanks to this, everything is now directed to Prime News


    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on about your overall experience with Rank Math? We appreciate your time and patience.

    If you have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 3 replies - 1 through 3 (of 3 total)

The ticket ‘Auto Redirect all URL’s before domain change’ is closed to new replies.