/ SAE

WordPress插件Google XML Sitemaps移植SAE

需要修改的几个地方都在sitemap-core.php文件中

1.函数function GetXmlUrl($forceAuto=false)

将函数体修改为

$stor = new SaeStorage(); return $stor->getUrl('wordpress', $this->GetOption("b_filename"));//wordpress是你的storage domain

2.函数function GetXmlPath($forceAuto=false)

将函数体修改为

return "saestor://wordpress/" . $this->GetOption("b_filename");

3.函数function BuildSitemap()

if($this->IsFileWritable($fileName)) { $this->_fileHandle = fopen($fileName,"w"); if(!$this->_fileHandle) $status->EndXml(false,"Not openable"); } else $status->EndXml(false,"not writable");

修改为

$this->_fileHandle = fopen($fileName,"w"); if(!$this->_fileHandle) $status->EndXml(false,"Not openable");

完工。

WordPress插件Google XML Sitemaps移植SAE
Share this