3步安装Google XML Sitemaps For SAE
1.下载Google XML Sitemaps For SAE
http://wp4sae-wordpress.stor.sinaapp.com/uploads/2011/06/google-sitemap-generator-for-sae-3.2.4.tar.gz
2.根目录下新建sitemap.php文件
代码如下:
<?
header(“Content-Type: text/xml;”);
$url=”http://86288-wordpress.stor.sinaapp.com/sitemap.xml“;
$contents=@file_get_contents($url);
echo $contents;
?>
红色url改成Google XML Sitemaps插件生成的地址
3.config.yaml添加如下代码进行重定向
- rewrite: if ( path ~ “sitemap.xml”) goto “sitemap.php”
大功告成^^,幽游网的sitemap是这样的:http://www.yuyuhunter.com/sitemap.xml
本文出自 幽游网,转载时请注明出处及相应链接。
本文永久链接: http://www.yuyuhunter.com/post/google-xml-sitemaps-sae.html
一条评论
好博客!赞一个!