use $uri instead of $request_uri