The Wayback Machine - https://web.archive.org/web/20200814064821/https://github.com/digitalocean/nginxconfig.io/issues/132
Skip to content
New issue

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

Yoast SEO issue with `wordpress.conf` #132

Closed
kb6673 opened this issue Dec 3, 2019 · 4 comments
Closed

Yoast SEO issue with `wordpress.conf` #132

kb6673 opened this issue Dec 3, 2019 · 4 comments
Assignees

Comments

@kb6673
Copy link

@kb6673 kb6673 commented Dec 3, 2019

Yoast SEO is a fairly popular WordPress plugin. I've found the nginxconfig.io breaks the sitemaps on every install I've done.

In /etc/nginx/nginxconfig.io/wordpress.conf we could add

# WordPress SEO
location = /wp-content/plugins/wordpress-seo/css/main-sitemap.xsl {}
location = /wp-content/plugins/wordpress-seo-premium/css/main-sitemap.xsl {}

Above the # WordPress: line

@timscha
Copy link

@timscha timscha commented Dec 27, 2019

I can confirm, this helps a lot!

@TheAlemazing
Copy link

@TheAlemazing TheAlemazing commented Jan 11, 2020

+1 for this

@MattIPv4 MattIPv4 self-assigned this Jun 2, 2020
@MattIPv4
Copy link
Member

@MattIPv4 MattIPv4 commented Jun 2, 2020

I will add the following in, which should handle this in a single line:

# WordPress: SEO plugin
location ~* ^/wp-content/plugins/wordpress-seo(?:-premium)?/css/main-sitemap\.xsl$ {}
@kb6673
Copy link
Author

@kb6673 kb6673 commented Jun 2, 2020

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4 participants
You can’t perform that action at this time.