尝试创建站点地图。
页面不显示内容,但是viewsource显示内容。
我使用php创建站点地图,并设置了一个htaccess重写规则。
http://finaldiscounts.com/xml-sitemap.xml 谁能告诉我为什么会这样?我在粘贴代码时有麻烦…我把它保存在TXT文件
http://finaldiscounts.com/xml-sitemap.txt在这里下载您的站点地图:http://www.xml-sitemaps.com/details-finaldiscounts.7196149.html并删除以下行
//使用免费的在线站点地图生成器www.xml-sitemaps.com
问题可能是您删除了以下行(urlset)
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
查看此链接pontikis.net/blog/creating-dynamic-xml-sitemaps-using-phpprogrammersarena.com/create-dynamic-sitemap-using-php