Merge pull request #865 from roots/docs

Add fonts to Nginx rewrites
This commit is contained in:
Foxaii
2013-08-30 06:07:51 -07:00

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: 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 ```nginx
location ~ ^/assets/(img|js|css)/(.*)$ { location ~ ^/assets/(img|js|css|fonts)/(.*)$ {
try_files $uri $uri/ /wp-content/themes/roots/assets/$1/$2; try_files $uri $uri/ /wp-content/themes/roots/assets/$1/$2;
} }
location ~ ^/plugins/(.*)$ { location ~ ^/plugins/(.*)$ {