WordPress用のrobots.txtを設定してみた


WordPress用にrobots.txtを見直してみました。

こちらの記事を参考にしました。結果、こんな風に設定しました↓

User-agent: *
Disallow: /wp-admin
Disallow: /wp-content/backup-47b4a
Disallow: /wp-content/cache
Disallow: /wp-content/languages
Disallow: /wp-content/plugins
Disallow: /wp-content/themes
Disallow: /wp-content/upgrade
Allow: /wp-content/uploads
Disallow: /wp-content/w3tc
Disallow: /wp-includes
Disallow: /trackback
Disallow: /comments
Disallow: /archives/tag/*
Disallow: /archives/category/*
Disallow: */trackback
Disallow: */comments

Disallow: /*?*
Disallow: /*?

Disallow: /*.php$
Disallow: /*.js$
Disallow: /*.inc$
Disallow: /*.css$
Disallow: /*.gz$
Disallow: /*.wmv$
Disallow: /*.cgi$
Disallow: /*.xhtml$

# allow google image bot to search all images
User-agent: Googlebot-Image
Disallow:
Allow: /*

# allow Google adsense bot on entire site
User-agent: Mediapartners-Google*
Disallow:
Allow: /*

# BEGIN XML-SITEMAP-PLUGIN
Sitemap: http://www.minimini-daisakusen.com/sitemap.xml
# END XML-SITEMAP-PLUGIN
こちらの記事もあわせてどうぞ
  1. WordPressでxmlサイトマップを自動生成するプラグイン「Google XML Sitemaps」
  2. WordPressの高速化まとめ
  3. WordPressでサイトマップを自動作成するプラグイン「PS Auto Sitemap」
  4. Google Libraries APIを利用してWordPressを高速化するプラグイン「Use Google Libraries」
  5. WordPressで記事の関連記事を表示するプラグイン「Yet Another Related Posts Plugin」
  6. WordPressで記事を読むのにかかる所要時間を表示する方法
  7. WordPressの表示を高速化するプラグイン「W3 Total Cache」
Tagged as:

About The Author

No Comments

Leave A Reply