www.gusucode.com > cso中国seo优化html整站源码程序 > sitemap.asp
<?xml version="1.0" encoding="utf-8"?> <urlset xmlns="http://www.google.com/schemas/sitemap/0.84"> <!--#include file="include/config.asp"--> <!--#include file="include/conn.asp"--> <% response.ContentType = "text/html;charset=utf-8" abs_url = "http://" & config_domain %> <url> <loc><%=abs_url%>/</loc> <lastmod><%=date()%></lastmod> <changefreq>always</changefreq> <priority>1.0</priority> </url> <% sql = "select * from so_class where typestr = 'fei886' order by orderid desc,id asc" rs.open sql,conn,1,1 if not rs.eof then do while not rs.eof %> <url> <loc><%=abs_url%><%=rs("url_html")%></loc> <lastmod><%=date()%></lastmod> <changefreq>daily</changefreq> <priority>0.9</priority> </url> <% rs.movenext loop end if rs.close %> <% sql = "select * from so_class where typestr = 'fei886_small' order by orderid desc,id asc" rs.open sql,conn,1,1 if not rs.eof then do while not rs.eof %> <url> <loc><%=abs_url%><%=rs("url_html")%></loc> <lastmod><%=date()%></lastmod> <changefreq>daily</changefreq> <priority>0.8</priority> </url> <% rs.movenext loop end if rs.close %> <% sql = "select top 458 * from so_article where typestr = 'fei886' order by id asc" rs.open sql,conn,1,1 if not rs.eof then do while not rs.eof %> <url> <loc><%=abs_url%><%=rs("url_html")%></loc> <lastmod><%=formatdatetime(rs("datestr"),2)%></lastmod> <changefreq>weekly</changefreq> <priority>0.7</priority> </url> <% rs.movenext loop end if rs.close %> </urlset>