User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php Disallow: /xmlrpc.php Disallow: /wp-json/ Disallow: /feed/ Disallow: /trackback/ Disallow: /*?s= Disallow: /search/ # 阻止访问插件和主题的私有目录,根据需要修改 Disallow: /wp-content/plugins/* Disallow: /wp-content/themes/* # 阻止访问一些敏感文件 RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f RewriteRule "^wp-config\.php" - [F,L] Sitemap: https://zjzxdc.org/sitemap_index.xml