robots.txt and woocommerce (3 posts)

  1. EnergyFreak
    Posted 3 years ago #

    Hi everyone,

    I recently noticed that google was indexing my Add to cart function with a random description, so it got me to think that maybe I need to add some line to my robots.txt to avoid this indexing of useless links. What did you guys add to your robots.txt?



  2. bheadrick
    Posted 3 years ago #

    Disallow: /*add-to-cart=*

    My hosting provider actually shut a site down because I was getting so much traffic from search engines crawling those url's before I realized I needed to add that.

  3. EnergyFreak
    Posted 3 years ago #

    Ya I think I must have over 200 or more useless pages that have been indexed and I was trying to reduce that number. I will add that line as well. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic