From 115f9a4e4570caf53ee042be9690bb7342ee9e90 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 11 Mar 2015 21:31:50 +0100 Subject: update sample-nginx.conf redirect to check for args --- doc/install/sample-nginx.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/install/sample-nginx.conf b/doc/install/sample-nginx.conf index f533d8ee0..c1e5663a8 100644 --- a/doc/install/sample-nginx.conf +++ b/doc/install/sample-nginx.conf @@ -75,7 +75,10 @@ server { # rewrite to front controller as default rule location / { - rewrite ^/(.*) /index.php?q=$uri&$args last; + if ($is_args != "") { + rewrite ^/(.*) /index.php?q=$uri&$args last; + } + rewrite ^/(.*) /index.php?q=$uri last; } # make sure webfinger and other well known services aren't blocked -- cgit v1.2.3