July 03, 2015 07:04AM
The problem is, the site is entered with www in url in a mobile device with parameters in the url, it is redirected from www.domain.com to m.domain.com but the parameters entered with www.domain.com/parameters when redirected to m.domain.com doesn't receive the parameters from thr url origin in www.

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 ?


The www config is the following :

server {
listen 80;
server_name www.domain.com;
...

#to detect if the device with www entered in domain is mobile
if ($http_user_agent ~* '(iPhone|iPod|iPad|Android|BlackBerry|webOS|Windows Phone)') {
rewrite ^ http://m.domain.com$uri;
}


}

The mobile configuration is
server {
listen 80;
server_name m.domain.com;

...
}
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: 68
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