源地址:Google XML Sitemaps插件下载安装出现,无法勾选Include sitemap in HTML format的问题_计算机技术网
最近在优化wordpress网站的时候发现有一个网站地图制作插件比较好用,而且比较正规,我们都知道google是搜索引擎的大佬级代表。国内很多搜索引擎的算法也基本是跟着这个标杆在对齐。今天我们就来看看google XML Sitemaps插件怎么使用设置?
插件安装:

搜索-下载-安装。

如果表明的红圈是灰色的,无法勾选解决方法:

到宝塔的中找到PHP版本管理,在里面安装扩展中找到xsl扩展 ,并且安装,然后重新启动PHP即可,如果是没有宝塔的,直接到实例里面去下载安装PHP xsl扩展即可。

在该设置中,红框选择的可以选择性的勾选,你可以不勾选,也没的什么问题的。

这里的设置都是默认的,如果不是,照着修改就可以了。
然后点击更新设置即可,就可以使用xxx.com/sitemap.xml来访问了。
访问sitemap.xml实际的效果:

当然这里说的是阿帕奇web服务器配置方法,如果是nginx web服务器的话,需要修改下伪静态,当用niginx web服务器的时候,插件会提示你怎么去增加伪静态代码,这里就不用详细的介绍了。