You could do it, if you edit the nginx-settings. We use a nginx reverse proxy, so its no real problem. Its a dirty hack, but works.
# ---------------------------------------------------------------------------------
# Redirect Mobile to latest instead to default
# ---------------------------------------------------------------------------------
set $mobile_rewrite N;
if ($http_user_agent ~* "(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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|xda|xiino") {
set $mobile_rewrite Y;
}
if ( $http_referer !~* "www\.mydomain\.com" ) {
set $mobile "${mobile_rewrite}E";
}
if ($mobile_rewrite = YE) {
rewrite ^\/$ https://www.mydomain.com/latest redirect;
}
if ($http_user_agent ~* '(iPhone|iPod|android|blackberry)') {
rewrite ^\/$ https://www.mydomain.com/latest permanent;
}
This version is shorter and faster, may also work for you. [code] if ($http_user_agent ~* "(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|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|xda|xiino") { rewrite ^\/$ https://www.mydomain.com/latest redirect; } [/code]