Skip to content

Instantly share code, notes, and snippets.

@cbracco
Last active December 20, 2015 07:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbracco/6095687 to your computer and use it in GitHub Desktop.
Save cbracco/6095687 to your computer and use it in GitHub Desktop.
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