How Can I No Index URL With Query Strings

#477595
  • Resolved Rajib
    Rank Math free

    Hey,
    First of all, thanks for this awesome plugin.
    Would you mind giving a solution to this problem?

    I have a bunch of URLs with query strings that got indexed. How can we stop it?
    Can you please share with me the code I should use in my robot.txt or function.php to stop indexing these types of URLs from getting indexed further?

    For example, the following URL. This does not make sense to index these types of URLs.

    https://www.rianstech.com/?url=https://xyz.com/

Viewing 1 replies (of 1 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    You may try adding the following line to your robots.txt file if you don’t want Google to crawl those URLs.

    Disallow: */?url=*
    

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

    Thank 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 1 replies (of 1 total)

The ticket ‘How Can I No Index URL With Query Strings’ is closed to new replies.