Redirection with alias/parked domain

#10681
  • Resolved Angel Costa
    Rank Math free

    I used to have domain1.com but later changed to domain2.com. I set up a redirection on my hosting level to redirect any request from domain1.com/(anything) to domain2.com/anything.

    The 404s show, but it does not allow me to create a redirect saying that the domain is not valid (“add a valid source url”). Maybe it’s because the domains are different.

    Is there a way to fix that?

    • This topic was modified 4 years, 8 months ago by Angel Costa.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I would suggest that you create a manual redirection for all the pages by adding the following code to your .htaccess file:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain1.com [NC]
    RewriteRule ^(.*)$ https://domain2.com/$1 [L,R=301]

    Please take a look at the following page for more info on this: https://rankmath.com/kb/solving-redirection-issues-using-rank-math-seo/

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Ok, thank you.

    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/?rate=5#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)

The ticket ‘Redirection with alias/parked domain’ is closed to new replies.