Skip to content
jpignite edited this page Mar 8, 2012 · 2 revisions

Add these rewrites to properly use Roots on Nginx:

if (!-e $request_filename) {
	rewrite ^/css/(.*)$ /wp-content/themes/roots/css/$1 last;
	rewrite ^/js/(.*)$ /wp-content/themes/roots/js/$1 last;
	rewrite ^/img/(.*)$ /wp-content/themes/roots/img/$1 last;
	rewrite ^/plugins/(.*)$ /wp-content/plugins/$1 last;
	break;
}
Clone this wiki locally