Different domain same url slug problem

#692529
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    I apologize for the inconvenience you’re experiencing with the redirects on your website. I understand that this is an urgent matter for your client.

    To resolve the issue of the same URL redirecting to the .COM domain instead of the UK domain, you can use Regex redirects in Rank Math. You can create a regex redirect to ensure that the URLs for the .COM and UK domains are handled correctly.

    Here’s an example of how you can set up a regex redirect to handle the .COM and UK domains:

    • Source URL: https://yoursite.com/post-name)`
    • Destination URL: https://yoursite.com/post-name

    By setting up this regex redirect, you can ensure that the URLs for the .COM and UK domains are handled correctly without redirecting to the wrong domain.

    If you need further assistance with setting up the regex redirect, please feel free to reach out to our support team by clicking here.

    I hope this helps! If you have any other questions or need further assistance, please let us know.

    Sources:
    Solving Redirection Issues Using Rank Math SEO Plugin » Rank Math
    How to Use Regex Redirects in Rank Math » Rank Math
    How to Redirect to URLs With Trailing Slash » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to this issue.

    Rank Math doesn’t handle server/domain-level redirection. The best way to achieve this redirection is via the .htaccess file. You can follow this URL for more details on how you can do that: https://chemicloud.com/kb/article/redirect-domain-using-htaccess/

    Here’s how you can edit the .htaccess file using Rank Math:
    https://rankmath.com/kb/edit-htaccess/

    Please do take a backup before editing your .htaccess file.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Thank you.

    Hi again, can u tell me how should I put redirect correctly from htaccess for these links I have attached here?!

    Hello,

    You may have to follow the steps in the link we have shared above to redirect those URLs.

    If you need assistance adding the redirects to your .htaccess, please get in touch with your web host as they are in a better position for this kind of redirection as it is a sensitive file.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Different domain same url slug problem’ is closed to new replies.