how to stop https://site.com/?add-to-cart=111 to crawl in google using rank math

#552533
Viewing 1 replies (of 1 total)
  • Hello,

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

    If you don’t want Google to crawl those URLs then you can add the following disallow rule on your robots.txt:

    Disallow: */?add-to-cart*
    

    Here’s a guide on how to edit your robots.txt using Rank Math:
    https://rankmath.com/kb/how-to-edit-robots-txt-with-rank-math/

    Once done, allow Google some time to re-crawl your site to reflect the changes.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    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 to stop https://site.com/?add-to-cart=111 to crawl in google using rank math’ is closed to new replies.