Last active
December 20, 2015 07:49
-
-
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$).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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