if ($is_mobile = 1) {
                  
                  
                          set $allow_recirect_to_mobile 1;
                  
                  
                      }
                  
                  
                  
                  
                  
                      if ($disallow_mobile_redirect_host = 0) {
                  
                  
                          set $allow_recirect_to_mobile 0;
                  
                  
                      }
                  
                  
                  
                  
                  
                      if ($cookie_is_full = 1) {
                  
                  
                          set $allow_recirect_to_mobile 0;
                  
                  
                      }
                  
                  
                  
                  
                  
                      if ($arg_full) {
                  
                  
                          set $allow_recirect_to_mobile 0;
                  
                  
                      }
                  
                  
                  
                  
                  
                          location / {
                  
                  
                              if ($arg_full) {
                  
                  
                              add_header Set-Cookie "is_full=1;Domain=domain;Path=/;Max-Age=100000";
                  
                  
                          }
                  
                  
                  
                  
                  
                              if ($allow_recirect_to_mobile) {
                  
                  
                                  rewrite ^(.*)$ http://m.$http_host$1 permanent;
                  
                  
                              }
                  
                  
                  
                  
                  
                                  try_files $uri $uri/ /index.php?_url=$uri&$args;
                  
                  
                          }
                  
                  
                
make me unsee it
а что такое recirect, если не секрет?
Обсуждают сегодня