Redirect all feed and atom url to source url

#619964
  • Resolved Anonymous
    Rank Math free

    Hello,

    I want to redirect url consisting feed/atom/ to source URL.

    For example

    example.com/494/text-here/feed/atom/
    example.com/494/text-here/feed/

    redirect them to

    example.com/494/text-here/

    How do I do this?

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

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

    You can try to add the following regex redirection on your website and see if that works for you:

    Source: (.*)/feed(/atom)?$
    Redirection Type: regex
    Destination URL: https://yourdomain.com/$1
    

    Please make sure to replace yourdomain.com with the actual domain of your website.

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    No worries, thank you very much for your help. I can add this code in Redirection Manager in Rank Math right and it should be fine? 🙂

    Anonymous
    Rank Math free

    And what was happening is when I added
    (.*)\/feed or (.*)\/feed\/atom

    For these URLs

    example.com/494/text-here/feed/atom/
    example.com/494/text-here/feed/

    The URL was becoming
    example.com/494/text-here//atom/
    example.com/494/text-here/

    I wanted both URL to become like this

    example.com/494/text-here/
    example.com/494/text-here/

    So all redirection issue is sorted for all posts 🙂

    Hello,

    Thank you for getting back to us.

    Yes, you should add the redirection to Rank Math > Redirections. Also, we’re not sure we understand your second message – can you confirm if the redirection is working as it should for you?

    Looking forward to hearing back from you.

    Anonymous
    Rank Math free

    Thank you, and no worries, it is all sorted 🙂

    Hello again,

    Sweet. We are glad to hear that this issue has been resolved. Thank you for letting us know. This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.

    We appreciate your patience and cooperation throughout this process.

    Thank you for choosing Rank Math.

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

The ticket ‘Redirect all feed and atom url to source url’ is closed to new replies.