2 Star 2 Fork 1

建筑资源吧 / DZ sitemap

Create your Gitee Account
Explore and code with more than 8 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

Sitemap for DiscuzX

修改自 https://www.discuz.net/thread-2474942-1-1.html ,支持 X3.4.

rewrite注意事项

discuz rewrite 规则中有

if (!-e $request_filename) {
	return 404;
}

文件名不存在时返回 404,所以 sitemap 的 rewrite 规则应放在 discuz rewrite 之前:

rewrite ^/(forum|group|home|portal)_sitemap\.xml /sitemap/$1_sitemap.xml last;
rewrite ^/([a-z]+)_sitemap_([0-9]+)\.xml  /sitemap/$1_sitemap_$2.xml last;1

Repository Comments ( 0 )

Sign in to post a comment

About

Discuz! X 站点地图 expand collapse
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
1
https://git.oschina.net/jzbar/DZ-sitemap.git
git@git.oschina.net:jzbar/DZ-sitemap.git
jzbar
DZ-sitemap
DZ sitemap
master

Search