301 Redirect

davidcapital nginx-forum at forum.nginx.org
Thu Nov 24 01:38:27 UTC 2022

383 / 5.000
Resultados de tradução
Hello, I would like to know the code to redirect a subdomain to mobile,
could anyone help me?

ex:RewriteCond %{HTTP_USER_AGENT} "ipod|iphone|ipad|android|palm" [NC]

RewriteRule (.*) http://m.yoursite.com.br/[R=301,L]

  This one I used in .htaccess in openlitespeed, now I use nginx and the
rules are different. I would like to know how to do this redirection in

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,295879,295879#msg-295879

More information about the nginx mailing list