Nginx doesn't redirect www no m in Safari, iPhone, iPad

Francis Daly francis at daoine.org
Fri Jul 3 17:47:30 UTC 2015


On Fri, Jul 03, 2015 at 07:04:20AM -0400, ramsoft75 wrote:

Hi there,

> In conclusion www.domain.com/parameters should redirect to
> m.domain.com/parameters but is redirected to m.domain.com, the parameters
> are clean. Is there a way no to clean it ?

It works for me as-is. I add your "if" at server{} level, and I see:

curl -A iPad -i http://localhost/parameters?key=value

HTTP/1.1 302 Moved Temporarily
...
Location: http://m.domain.com/parameters?key=value

What response do you get for a similar curl command?

	f
-- 
Francis Daly        francis at daoine.org



More information about the nginx mailing list