Add fonts to Nginx rewrites
This commit is contained in:
@@ -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/(.*)$ {
|
||||||
|
|||||||
Reference in New Issue
Block a user