- デザイン>>テンプレート>>インデックステンプレート
- インデックステンプレートを作成
- テンプレート名、sitemap
- 下記の「インデックステンプレートに貼り付ける内容」を挿入
- テンプレートの設定>>出力ファイル名>>sitemap.xmlと入力
- 保存⇒再構築を行なう
<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.9"> <url> <loc><$MTBlogURL encode_xml="1"$></loc> <priority>1.0</priority> </url> <MTCategories> <url> <loc><$MTCategoryArchiveLink encode_xml="1"$></loc> </url> </MTCategories> <MTEntries lastn="9999"> <url> <loc><$MTEntryPermalink encode_xml="1"$></loc> <lastmod><$MTEntryModifiedDate utc="1" format="%Y-%m-%dT%H:%M:%SZ"$></lastmod> </url> </MTEntries> <MTIgnore>ウェブページ</MTIgnore> <MTPages> <url> <loc><$MTPagePermalink encode_xml="1"$></loc> <lastmod><$MTPageModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod> <changefreq>weekly</changefreq> <priority>0.5</priority> </url> </MTPages> <MTIgnore>エントリ(ブログ)ページ</MTIgnore> <mt:Blogs include_blogs="children" include_with_website="1"> <url> <loc><$mt:BlogURL encode_xml="1"$></loc> <lastmod><$mt:Date format="%Y-%m-%dT%H:%M:%S"$><$mt:BlogTimezone$></lastmod> <priority>0.7</priority> </url> <mt:IfArchiveTypeEnabled archive_type="Individual"><mt:Entries lastn="9999"><url> <loc><$mt:EntryPermalink encode_xml="1"$></loc> <lastmod><$mt:EntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$mt:BlogTimezone$></lastmod> <priority>0.7</priority> </url></mt:Entries></mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Page"><mt:Pages lastn="9999"><url> <loc><$mt:PagePermalink encode_xml="1"$></loc> <lastmod><$mt:PageModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$mt:BlogTimezone$></lastmod> <priority>0.7</priority> </url></mt:Pages></mt:IfArchiveTypeEnabled> <mt:SetVarTemplate name="CREATEURL"> <url> <loc><$mt:ArchiveLink encode_xml="1"$></loc> <mt:Entries lastn="1" sort_by="modified_on"><lastmod><$mt:EntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$mt:BlogTimezone$></lastmod></mt:Entries> <priority>0.5</priority> </url> </mt:SetVarTemplate> <mt:IfArchiveTypeEnabled archive_type="Yearly"> <mt:ArchiveList archive_type="Yearly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Monthly"> <mt:ArchiveList archive_type="Monthly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Weekly"> <mt:ArchiveList archive_type="Weekly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Daily"> <mt:ArchiveList archive_type="Daily"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Author"> <mt:ArchiveList archive_type="Author"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Author-Daily"> <mt:ArchiveList archive_type="Author-Daily"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Author-Weekly"> <mt:ArchiveList archive_type="Author-Weekly"><$mt:Var name="CREATEURL"$> </mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Author-Monthly"> <mt:ArchiveList archive_type="Author-Monthly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Author-Yearly"> <mt:ArchiveList archive_type="Author-Yearly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Category"> <mt:ArchiveList archive_type="Category"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Category-Daily"> <mt:ArchiveList archive_type="Category-Daily"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Category-Weekly"> <mt:ArchiveList archive_type="Category-Weekly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Category-Monthly"> <mt:ArchiveList archive_type="Category-Monthly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> <mt:IfArchiveTypeEnabled archive_type="Category-Yearly"> <mt:ArchiveList archive_type="Category-Yearly"><$mt:Var name="CREATEURL"$></mt:ArchiveList> </mt:IfArchiveTypeEnabled> </mt:Blogs> </urlset>
上記が出来た時点でGoogleのウェブマスターツールに登録をしましょう。
これに加えて、robots.txtを追記することで検索エンジンがクロールした際に、sitemap.xmlを読み込んでくれるのでインデックス化のスピードを少しでも早まると思います。
User-agent: * Sitemap: 設置しているドメイン名/sitemap.xml Disallow
0 件のコメント:
コメントを投稿