Skip to content

Commit 599be98

Browse files
committed
Add try_files directive robots.txt in performance.conf to ensure PHP apps handle routes correctly. Fixes #589
1 parent 1c7eda6 commit 599be98

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎src/variations/fpm-nginx/etc/nginx/server-opts.d/performance.conf‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ location = /favicon.ico {
88
location = /robots.txt {
99
log_not_found off;
1010
access_log off;
11+
# Pass to PHP to ensure PHP apps can handle routes that end in these filetypes
12+
try_files $uri /index.php?$query_string;
1113
}
1214

1315
# assets, media

0 commit comments

Comments
 (0)