Correct Nginx try_files syntax with query params

With WordPress sites and Nginx servers, you may have used one of the following try_files directives... try_files $uri $uri/ /index.php; try_files $uri $uri/ /index.php?$args; Both are incomplete. With the first method, arguments are not passed. With the second method, question mark is present, even when there are no query parameters. A complete solution is to … Continue reading Correct Nginx try_files syntax with query params

Advertisements