开发者 | vo3da |
---|---|
更新时间 | 2021年3月16日 21:36 |
PHP版本: | 5.6.4 及以上 |
WordPress版本: | 5.6.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
In order for your robots file generated by our plugin to be served on request yourdomian.com/robots.txt delete all nginx rules concerning robots and add only this: location = /robots.txt { index index.html index.htm index.php; try_files $uri $uri/ /index.php?$args; }
To have your sitemap file generated by our plugin served at yourdomian.com/sitemap.xml or yourdomian.com/sitemap-main.xml request (depending on whether the sitemap is divided by type) remove all nginx rules regarding sitemap and add only the following: location ~ (sitemap.xml|single-sitemap.xml|sitemap_main.xml|sitemapimages.xml)$ { index index.html index.htm index.php; try_files $uri $uri/ /index.php?$args; }