# This file tells search engines which pages and files they should or shouldn't crawl # Block all search engines from accessing sensitive or unnecessary WordPress directories User-agent: * Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /wp-content/plugins/ Disallow: /wp-content/themes/ Disallow: /wp-content/cache/ Disallow: /wp-json/ Disallow: /xmlrpc.php Disallow: /feed/ Disallow: /trackback/ Disallow: /comments/ Disallow: /cgi-bin/ # Allow access to the admin-ajax.php file for necessary functionality Allow: /wp-admin/admin-ajax.php # Block search engines from indexing search result pages Disallow: /?s= # Block indexing of author archive pages (especially for single-author blogs) Disallow: /author/ # Block indexing of categories and tags to avoid duplicate content issues Disallow: /tag/ # Block indexing of attachments as separate pages Disallow: /attachment/