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.