Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #706 from singlow/rewrite-docs-plugin-php-file-fix

Add instructions to Nginx rewrite config
  • Loading branch information...
commit 44dd8f120b42ff91d11b3ba97f65f8db39b7cbaa 2 parents 3bd541a + f4dae32
@retlehs retlehs authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 doc/rewrites.md
View
4 doc/rewrites.md
@@ -18,6 +18,8 @@ If HTML5 Boilerplate's `.htaccess` support is enabled in `lib/config.php`, then
### Nginx
+Include these in your Nginx config, before the PHP fastcgi block (`location ~ \.php$`).
+
location ~ ^/assets/(img|js|css)/(.*)$ {
try_files $uri $uri/ /wp-content/themes/roots/assets/$1/$2;
}
@@ -32,4 +34,4 @@ If HTML5 Boilerplate's `.htaccess` support is enabled in `lib/config.php`, then
"^/js/(.*)$" => "/wp-content/themes/roots/js/$1",
"^/img/(.*)$" => "/wp-content/themes/roots/img/$1",
"^/plugins/(.*)$" => "/wp-content/plugins/$1"
- )
Please sign in to comment.
Something went wrong with that request. Please try again.