text Nginx重写了Yoast的WordPress SEO插件。这些重写将进入服务器块之间的Nginx主机文件。

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text Nginx重写了Yoast的WordPress SEO插件。这些重写将进入服务器块之间的Nginx主机文件。相关的知识,希望对你有一定的参考价值。

# This rewrite redirects sitemap.xml to sitemap_index.xml, which is what Yoast's WordPress SEO plugin generates.
rewrite ^/sitemap\.xml$ /sitemap_index.xml permanent;

# This rewrite ensures that the styles are available for styling the generated sitemap. 
rewrite ^/([a-z]+)?-?sitemap\.xsl$ /index.php?xsl=$1 last;

# These rewrites rule are generated by Yoast's plugin for Nginx webserver
rewrite ^/sitemap_index\.xml$ /index.php?sitemap=1 last;
rewrite ^/([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 last;

以上是关于text Nginx重写了Yoast的WordPress SEO插件。这些重写将进入服务器块之间的Nginx主机文件。的主要内容,如果未能解决你的问题,请参考以下文章

text 将架构添加到yoast seo breadcrumb

text 将架构添加到yoast seo breadcrumb

text 在WP管理栏中隐藏Yoast SEO。添加到功能。

text nginx重写

text nginx重写试试

搭建wordpress个人博客