How to stop Indexing Category’s URL using robots.txt

Want to stop indexing category’s url like – https://www.domainname.com/category/how-to on search engines. So add given simple code on your robots.txt file.

How to Do

  • Login in your web hosting’s cpanel.
  • Go to public_html then open robots.txt file.
  • Add Disallow: /category/ then SAVE.

View my robots.txt code for explanation

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Disallow: /category/

Hope this code will work on your website. Thanks for visiting thekroyaard.com