最近为 zen cart 程序更换了目录,但是没有修改配置文件。
在安装 SitemapXML 发现生成的 XML 文件路径不正确。
[attach]1235[/attach]
其生成的 XML 文件路径为http://localhost/sunnyus.com/shopping/sitemapindex.xml
但是实际的路径为http://localhost/domains/sunnyus.com/shopping/sitemapindex.xml
这是因为程序的配置文件不正确。
需要修改文件
includes\configure.php 的
将其中的第 26,27 行修改为正确的路径地址
[attach]1236[/attach]
然后再在控制台中重新创建站点的 XML 文件,这时候就应该能够出现正确的访问地址了
[attach]1237[/attach]