We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setting NGINX_WP_GOOGLE_XML_SITEMAP=1 will enable rewrite rules that no longer correctly works since "Google XML Sitemap" plugin version 4.1.14.
Old rewrite Nginx rules:
rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml$ "/index.php?xml_sitemap=params=$2" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last; rewrite ^/sitemap(-+([a-zA-Z0-9_-]+))?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
New Nginx rewrite rules in last plugin version, which is 4.1.19:
rewrite ^/.*-misc?\.xml$ "/index.php?xml_sitemap=params=$2" last; rewrite ^/.*-misc?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last; rewrite ^/.*-misc?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last; rewrite ^/.*-misc?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last; rewrite ^/.*sitemap.*(?:\d{1,4}(?!-misc)|-misc)?\.xml$ "/index.php?xml_sitemap=params=$2" last; rewrite ^/.*sitemap.*(?:\d{1,4}(?!-misc)|-misc)?\.xml\.gz$ "/index.php?xml_sitemap=params=$2;zip=true" last; rewrite ^/.*sitemap.*(?:\d{1,4}(?!-misc)|-misc)?\.html$ "/index.php?xml_sitemap=params=$2;html=true" last; rewrite ^/.*sitemap.*(?:\d{1,4}(?!-misc)|-misc)?\.html.gz$ "/index.php?xml_sitemap=params=$2;html=true;zip=true" last;
Source
Should wordpress.conf.tmpl need to be modified to align with the new plugin version ?
The text was updated successfully, but these errors were encountered:
fba9729
Thank you, updated the rules
Sorry, something went wrong.
No branches or pull requests
Setting NGINX_WP_GOOGLE_XML_SITEMAP=1 will enable rewrite rules that no longer correctly works since "Google XML Sitemap" plugin version 4.1.14.
Old rewrite Nginx rules:
New Nginx rewrite rules in last plugin version, which is 4.1.19:
Source
Should wordpress.conf.tmpl need to be modified to align with the new plugin version ?
The text was updated successfully, but these errors were encountered: