Redirect all links to new domain

#149665
  • Resolved fotita
    Rank Math free

    Hi, I saw this post of yours, and I want to clarify something, please.

    Source: /(.*)
    Target:https://newsite.com/$1/

    You mentioned the regex you provided above will automatically redirect all URLs to their related URLs in the new domain.
    > This includes everything from service pages to blog posts, right?
    > Do I place this in the .htaccess file of the old domain or the new domain?
    > Once I switch domains, the old domain will get parked. Will the regex work still?
    > Will the regex code prevent broken backlinks?

    Thanks

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

    Thank you for getting in touch with us.

    > The regex will redirect all URLs under the domain to the set destination so yes, it will include your pages and posts URLs.

    > The regex would be used within Rank math redirection module of the old domain.

    > I do believe it should work. Please do test this and let us know if it doesn’t.

    > Sure! Having your links redirected to their relative URLs in the new domain would prevent URLs leading to a dead end/404s and such.

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

    fotita
    Rank Math free

    Thanks, I’ll test it out now and let you know!

    Hello,

    Thank you for keeping in touch with us.

    Please let us know how it goes. We will keep this ticket open for you.

    Thank you.

    fotita
    Rank Math free

    Hello,
    I’ve decided to move domain names through a feature on my web hosting platform instead. That’s because I realize I won’t have access to my old domain after I make the change, so I won’t be able to redirect.
    For the most part, it’s been smooth, but I’ve opened a different ticket for some 404 Logs I’ve been encountering showing up on the Rankmath dashboard.
    I’ll hear from you from there.
    Thanks!

    Hello,

    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 us asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post 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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Redirect all links to new domain’ is closed to new replies.