Add fonts to Nginx rewrites

This commit is contained in:
Foxaii
2013-08-30 14:04:33 +01:00
parent bdde0e5ae1
commit fd351fd7c4

View File

@@ -19,7 +19,7 @@ npm install
If you're using Nginx you'll need to add the Roots rewrites to your server config before the PHP block (`location ~ \.php$`) to use the clean URLs feature:
```nginx
location ~ ^/assets/(img|js|css)/(.*)$ {
location ~ ^/assets/(img|js|css|fonts)/(.*)$ {
try_files $uri $uri/ /wp-content/themes/roots/assets/$1/$2;
}
location ~ ^/plugins/(.*)$ {