标签存档: Feed

解决HOST1FREE中<noscript>引起的RSS Feed错误

目前本站使用的是HOST1FREE免费空间服务器,在使用RSS Feed时总是出现错误。

经过 http://feedvalidator.org/ 的feed检测,发现是由于HOST1FREE广告代码引起的:

Sorry This feed does not validate.
line 517, column 0: XML parsing error: <unknown>:517:0: junk after document element
<noscript>

516 <!-- www.Host1Free.com Counter Code -->
517 <noscript>
518 <a href="http://www.host1free.com/" title="Free Hosting">Free Hosting</a>
519 <a href="http://www.host1free.com/web-hosting/" title="Free Web Hosting Service">
    Free Hosting</a>
520 <a href="http://www.host1plus.com/" title="Web Hosting">Web Hosting</a>
521 <a href="http://www.host1plus.com/vps-hosting/" title="VPS Hosting">VPS Hosting</a>
522 </noscript>
523 <!-- End of www.Host1Free.com Counter Code -->

在查看HOST1FREE文档http://www.host1free.com/blog/remove-the-counter-code/后发现解决方法如下:

★在.htaccess文件中添加代码php_value auto_append_file none,问题解决。

目前本站RSS Feed运行正常。

www.000webhost.com