Nginx doesn't redirect www no m in Safari, iPhone, iPad
francis at daoine.org
Sat Jul 4 18:35:28 UTC 2015
On Sat, Jul 04, 2015 at 02:03:47PM -0400, ramsoft75 wrote:
> i run the following :
> curl -A iPad -i http://www.domain.com/#!/pt/--item/pt/32516/Farinha
> and the result was :
> -bash: !/pt/--item/pt/32516/Farinha : event not found
A few things here:
"!" is special to bash, so you have to shell-escape it for "curl" to see it.
"#" is special in a url; it is not part of the normalised variable $uri.
Possibly using $request_uri instead of $uri in your configuration will
be appropriate? They are different variables with different values,
so there are probably some cases where using one will break things.
Since you are using it in a redirect, probably $request_uri is the
correct one to use regardless.
Francis Daly francis at daoine.org
More information about the nginx