Skip to content

Commit

Permalink
Merge pull request #448 from roots/wp-php-404-fix
Browse files Browse the repository at this point in the history
Fix #436 - Let WP handle 404s for PHP files
  • Loading branch information
swalkinshaw committed Dec 28, 2015
2 parents 41a316b + 4111dee commit 270f793
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### HEAD
* Fixes #436 - Let WP handle 404s for PHP files ([#448](https://github.com/roots/trellis/pull/448))
* Fixes #297 - Use `php_flag` vs `php_admin_flag` ([#447](https://github.com/roots/trellis/pull/447))
* Fixes #316 - Set WP permalink structure during install ([#316](https://github.com/roots/trellis/pull/316))
* Switch to https://api.ipify.org for IP lookup ([#444](https://github.com/roots/trellis/pull/444))
Expand Down
1 change: 1 addition & 0 deletions roles/wordpress-setup/templates/wordpress-site.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ server {

location ~ \.php$ {
try_files $uri =404;
error_page 404 /index.php;

{% if item.value.cache is defined and item.value.cache.enabled | default(false) -%}
set $skip_cache 0;
Expand Down

0 comments on commit 270f793

Please sign in to comment.