我们都知道,网站的站点地图sitemap对于seo的优化和推广以及蜘蛛的爬取是非常非常重要的,其重要性我就不在这里多说了,接下来教大家怎么配置自己的sitemap.html之类的
这样子写在robots,才有利于蜘蛛的抓取,这里以一个站点为例,http://www.i726.top,先给大家看看效果图以及具体有什么样的好处
http://www.i726.top/sitemap.html,这个网站是php代码,全站已经静态化了,我们可以用模拟蜘蛛抓一些网页给大家看看
http://www.i726.top/thread-169-1-1.html
http://www.i726.top/thread-168-1-1.html
http://www.i726.top/thread-167-1-1.html
http://www.i726.top/thread-166-1-1.html
http://www.i726.top/thread-165-1-1.html
http://www.i726.top/thread-164-1-1.html
http://www.i726.top/thread-163-1-1.html
http://www.i726.top/thread-162-1-1.html
http://www.i726.top/thread-161-1-1.html
http://www.i726.top/thread-160-1-1.html
http://www.i726.top/thread-159-1-1.html
http://www.i726.top/thread-158-1-1.html
http://www.i726.top/thread-157-1-1.html
http://www.i726.top/thread-156-1-1.html
http://www.i726.top/thread-155-1-1.html
http://www.i726.top/thread-154-1-1.html
http://www.i726.top/thread-153-1-1.html
http://www.i726.top/thread-152-1-1.html
http://www.i726.top/thread-151-1-1.html
http://www.i726.top/thread-150-1-1.html
http://www.i726.top/thread-149-1-1.html
http://www.i726.top/thread-148-1-1.html
http://www.i726.top/thread-147-1-1.html
http://www.i726.top/thread-146-1-1.html
http://www.i726.top/thread-145-1-1.html
http://www.i726.top/thread-144-1-1.html
http://www.i726.top/thread-143-1-1.html
http://www.i726.top/thread-142-1-1.html
http://www.i726.top/thread-141-1-1.html
http://www.i726.top/thread-144-1-1.html
http://www.i726.top/thread-140-1-1.html
http://www.i726.top/thread-142-1-1.html
http://www.i726.top/thread-143-1-1.html
http://www.i726.top/thread-140-1-1.html
http://www.i726.top/thread-139-1-1.html
http://www.i726.top/thread-140-1-1.html
http://www.i726.top/thread-141-1-1.html
http://www.i726.top/thread-144-1-1.html
http://www.i726.top/thread-140-1-1.html
http://www.i726.top/thread-142-1-1.html
http://www.i726.top/thread-143-1-1.html
http://www.i726.top/thread-140-1-1.html
http://www.i726.top/thread-139-1-1.html
http://www.i726.top/thread-140-1-1.html
http://www.i726.top/thread-141-1-1.html
http://www.i726.top/thread-139-1-1.html
http://www.i726.top/thread-138-1-1.html
http://www.i726.top/thread-1371-1.html
http://www.i726.top/thread-136-1-1.html
http://www.i726.top/thread-135-1-1.html
http://www.i726.top/thread-134-1-1.html
http://www.i726.top/thread-133-1-1.html
http://www.i726.top/thread-132-1-1.html
http://www.i726.top/thread-131-1-1.html
http://www.i726.top/thread-130-1-1.html
http://www.i726.top/thread-129-1-1.html
http://www.i726.top/thread-128-1-1.html
http://www.i726.top/thread-127-1-1.html
http://www.i726.top/thread-126-1-1.html
http://www.i726.top/thread-125-1-1.html
http://www.i726.top/thread-124-1-1.html
http://www.i726.top/thread-123-1-1.html
http://www.i726.top/thread-122-1-1.html
http://www.i726.top/thread-121-1-1.html
http://www.i726.top/thread-120-1-1.html
http://www.i726.top/thread-119-1-1.html
http://www.i726.top/thread-118-1-1.html
http://www.i726.top/thread-117-1-1.html
好了,就显示这么多静态的站点
网站的首页也是http://www.i726.top/portal.html 这也是静态的下次再写一个自定义伪静态的教程
这里我们以nginx为例
rewrite ^([^\.]*)/sitemap.html$ $1/sitemap.php;
重写php文件为静态的html,当然也可以用htm等静态的后缀,有兴趣的可以看看http://www.i726.top/forum.html是怎么优化的欢迎来交流