Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Include these in your Nginx config, before the PHP fastcgi block (location ~ \.php$).
location ~ ^/assets/(img|js|css)/(.*)$ {
try_files $uri $uri/ /wp-content/themes/yourthemename/assets/$1/$2;
}
location ~ ^/plugins/(.*)$ {
try_files $uri $uri/ /wp-content/plugins/$1;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment