Welcome! Log In Create A New Profile

Advanced

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

oscaretu .
July 07, 2015 08:34AM
Yo don't need to escape the "!" if you delimit the URL with single
quotes...

On Tue, Jul 7, 2015 at 11:28 AM, ramsoft75 <nginx-forum@nginx.us> wrote:

> Hi there all and thank's for the help
>
> Dear oscaretu, the curl was tested with " doesn't help, because ! is a
> special character it needs a escaope after "\", so the correct curl command
> for the terminal is :
>
> $ curl -A iPad -i http://www.domain.com/#\!/pt/--item-view/en/3190/Wok
>
> Dear Francis Daly
>
> For the initial configuration :
>
> if ($http_user_agent ~* '(iPhone|iPod|iPad|Android|BlackBerry|webOS|Windows
> Phone)') {
> rewrite ^ http://m.domain.com/$request_uri;
> }
>
>
> For the example above the output in terminal is :
>
> HTTP/1.1 302 Moved Temporarily
> Server: nginx
> Date: Tue, 07 Jul 2015 09:19:47 GMT
> Content-Type: text/html
> Content-Length: 154
> Connection: keep-alive
> Location: http://m.domain.com//
>
> <html>
> <head><title>302 Found</title></head>
> <body bgcolor="white">
> <center><h1>302 Found</h1></center>
> <hr><center>nginx</center>
> </body>
> </html>
>
> It's the same if i changed to :
>
> if ($http_user_agent ~*
> '(iPhone|iPod|iPad|Android|BlackBerry|webOS|Windows Phone)') {
> rewrite ^/$ http://m.domain.com/$request_uri;
> }
>
> The problem is not from Nginx but from Safari witch doesn't send the url
> after #, the Safari removes the fragment.
>
> There are some documentation about this in :
>
>
> http://randomproblems.com/parameter-passing-redirect-craziness-301-redirects-fragment-identifiers-hash-query-string-variables/
> http://news.qooxdoo.org/http-redirects-and-loss-of-fragment-identifiers
>
> The question know how to handle this # problem with Safari.
>
> Thank's for the help
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,260033,260110#msg-260110
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>



--
Oscar Fernandez Sierra
oscaretu@gmail.com
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

ramsoft75 July 03, 2015 07:04AM

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

Francis Daly July 03, 2015 01:48PM

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

ramsoft75 July 04, 2015 02:03PM

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

ramsoft75 July 04, 2015 02:20PM

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

Francis Daly July 04, 2015 02:36PM

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

ramsoft75 July 05, 2015 03:31PM

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

ramsoft75 July 06, 2015 04:52AM

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

Francis Daly July 06, 2015 08:24AM

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

ramsoft75 July 06, 2015 10:10AM

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

ramsoft75 July 06, 2015 10:11AM

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

ramsoft75 July 06, 2015 12:39PM

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

ramsoft75 July 06, 2015 12:40PM

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

ramsoft75 July 06, 2015 12:57PM

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

Alt July 06, 2015 02:33PM

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

Francis Daly July 06, 2015 02:22PM

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

oscaretu . July 07, 2015 03:22AM

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

ramsoft75 July 07, 2015 05:28AM

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

Alt July 07, 2015 06:29AM

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

ramsoft75 July 07, 2015 10:44AM

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

oscaretu . July 07, 2015 08:34AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready