MT4googleサイトマップの作成方法備忘録

?MT管理画面でインデックステンプレート作成

?サイトマップをsitemap.xmlで保存。内容は以下のコード

?googleにログインしてサイトマップ登録

(sitemap 0.9です)

 

 

 

 

<?xml version="1.0" encoding="UTF-8"?>

  <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
  <loc><$MTBlogURL encode_xml="1"$></loc>
  <lastmod><$MTDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  <changefreq>daily</changefreq>
  </url>
 
  <MTIfArchiveTypeEnabled archive_type="Individual">
  <MTEntries lastn="9999">
  <url>

  <loc><$MTEntryPermalink encode_xml="1"$></loc>
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  <priority>1.0</priority>

  </url>
  </MTEntries>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Monthly">
  <MTArchiveList archive_type="Monthly">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Weekly">
  <MTArchiveList archive_type="Weekly">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Daily">
  <MTArchiveList archive_type="Daily">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Author">
  <MTArchiveList archive_type="Author">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Author-Daily">
  <MTArchiveList archive_type="Author-Daily">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Author-Weekly">
  <MTArchiveList archive_type="Author-Weekly">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Author-Monthly">
  <MTArchiveList archive_type="Author-Monthly">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Author-Yearly">
  <MTArchiveList archive_type="Author-Yearly">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Category">
  <MTArchiveList archive_type="Category">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Category-Daily">
  <MTArchiveList archive_type="Category-Daily">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Category-Weekly">
  <MTArchiveList archive_type="Category-Weekly">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Category-Monthly">
  <MTArchiveList archive_type="Category-Monthly">
  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>

  <MTEntries lastn="1" sort_by="modified_on">
  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>

  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Category-Yearly">
  <MTArchiveList archive_type="Category-Yearly">
  <url>

  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">
&
nbsp; <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </MTEntries>
  </url>
  </MTArchiveList>
  </MTIfArchiveTypeEnabled>
 
  <MTIfArchiveTypeEnabled archive_type="Page">
  <MTArchiveList archive_type="Page">

  <url>
  <loc><$MTArchiveLink encode_xml="1"$></loc>
  <MTEntries lastn="1" sort_by="modified_on">

  <lastmod><$MTEntryModifiedDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>
  </MTEntries>
  </url>
  </MTArchiveList>

  </MTIfArchiveTypeEnabled>
 
  <url>
  <loc><$MTLink template="アーカイブインデックス" encode_xml="1"$></loc>
  <lastmod><$MTDate format="%Y-%m-%dT%H:%M:%S"$><$MTBlogTimezone$></lastmod>

  </url>
</urlset>

おすすめの記事