トップ 一覧 検索 ヘルプ RSS ログイン

sitemapの変更点

  • 追加された行はこのように表示されます。
  • 削除された行はこのように表示されます。
:sitemap:サーバにどのようなコンテンツが入っているかを検索エンジンに通知する仕組み
!!!規格
*http://www.sitemaps.org/
*http://www.sitemaps.org/ja/
!sitemap FAQ
*http://www.sitemaps.org/ja/faq.php
!sitemap プロトコル説明
*http://www.sitemaps.org/ja/protocol.php
*XML サイトマップのサンプル
*サイトマップ インデックス ファイル (複数のサイトマップ ファイルのインデックス) を使用する場合
*http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd
!!!サンプル
!perl
*宣言
 use WWW::Google::SiteMap;
*URL作成 
 my $url=WWW::Google::SiteMap::URL->new();
 $url->loc($newURL);
 $url->changefreq('weekly');
 $url->lastmod($timespec);
 $url->priority($priority)
*sitemap 作成
 my $sitemap=WWW::Google::SiteMap->new();
 $sitemap->add($url);
 $sitemap->pretty(1);
 $sitemap->write(パス);