I'm having a problem doing a redirect.
It's for me to put www.mysite.com/default/true and it directs me to the normal site even though I'm on my cell phone.
if ($http_user_agent ~* "(android|bb\d+|meego).+mobile|android|jasmine|minimo|mot|MOT|nokia|sonyericsson|webos|avantgo|bada/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)/|plucker|pocket|psp|series(4|6)0|symbian|treo|up.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino") { set $mobile_rewrite perform; }Has anyone ever experienced this?set $force_dt_cookie "";
if ($args ~ 'desktop=true') { set $mobile_rewrite do_not_perform; set $force_dt_cookie "desktop=true"; }
add_header Set-Cookie $force_dt_cookie;
if ($http_cookie ~ 'desktop=true') { set $mobile_rewrite do_not_perform; }
if ($mobile_rewrite = perform) { rewrite ^ http://m.meusite.com.br$request_uri? redirect; break; }