群文件下载ss_chapter.php地图文件,上传到/www/sitemap文件夹

伪静态设置

NGINX:

rewrite ^/sitemap/chapter_([0-9]+).xml$  /sitemap/ss_chapter.php?page=$1;
 rewrite ^/sitemap/chapter.xml$  /sitemap/ss_chapter.php;

 

APACHE:

RewriteRule ^sitemap/chapter_([0-9]+).xml$  sitemap/ss_chapter.php?page=$1 
RewriteRule ^sitemap/chapter.xml$  sitemap/ss_chapter.php

 

访问地址为:域名/sitemap/chapter.xml

对于自定义XML地图地址的参考这篇帖子设置对应伪静态  https://www.kimicms.com/92.html

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注