From f2e44a932b1ef67b0152d38f449323ce6fa71a91 Mon Sep 17 00:00:00 2001 From: Taylor Evanson Date: Sat, 14 May 2016 12:32:42 -0600 Subject: [PATCH] AJAX autocomplete fix --- sites-available/example.com.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sites-available/example.com.conf b/sites-available/example.com.conf index 2fd1b8b8..e40e858b 100644 --- a/sites-available/example.com.conf +++ b/sites-available/example.com.conf @@ -48,6 +48,12 @@ server { root /var/www/sites/example.com; index index.php; + ## If you are experiencing AJAX autocomplete issues, + ## uncomment the lines below + #if ( $args ~* "^q=(?.*)" ) { + #rewrite ^/index.php$ $scheme://$host/?q=$query_value? permanent; + #} + ## If you're using a Nginx version greater or equal to 1.1.4 then ## you can use keep alive connections to the upstream be it ## FastCGI or Apache. If that's not the case comment out the line below.