redirection rules for domain change

#184821
  • Resolved Sajeed
    Rank Math free

    hello, I need help with redirection rules. I have moved half of our website contents to another domain. there are a lot of 404 requests seen.
    I have changed the specific part of the website ie. domain[.]com/music-nation/* to newdomain[.]com/music-nation

    now looking forward to creating 301 redirections of domain[.]com/music-nation/[*] to newdomain[.]com/music-nation/[*]

    eg1: domain[.]com/music-nation/sandhu-profile redirected to newdomain[.]com/music-nation/sandhu-profile

    eg2: domain[.]com/music-nation/rahul-profile redirected to newdomain[.]com/music-nation/rahul-profile

Viewing 3 replies - 1 through 3 (of 3 total)
  • Prabhat
    Rank Math agency

    Hello,

    Thanks for contacting us.

    You can achieve this redirection using RegEx. Please set up the redirection like this:
    Source: /music-nation/(.*)
    Type: RegEx
    Destination: newdomain.com/music-nation/$1

    Please ensure to replace “newdomain.com” with the actual domain.

    Please let us know how that goes.

    Thanks.

    Yeah have added the rule and working. You can mark the ticket as resolved m Thankyou!

    Hello,

    We are super happy that this resolved your issue. 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 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 do 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)

You must be logged in to reply to this ticket.