<div dir="ltr">Hi,<div>What do you think is more efficient...cookies or redirect by the user agent ?</div><div><br></div><div>Thank you</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/8/12 Adie Nurahmadie <span dir="ltr"><<a href="mailto:nurahmadie@gmail.com" target="_blank">nurahmadie@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">yes, it's possible.<div><br></div><div>The simplest way is to use if and check either $cookie_XXX or $http_user_agent variable.</div>
<div>You may want to explore nginx's wiki page here <a href="http://wiki.nginx.org/HttpCoreModule#.24cookie_COOKIE" target="_blank">http://wiki.nginx.org/HttpCoreModule#.24cookie_COOKIE</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Aug 12, 2013 at 9:11 PM, Rodrigo Serra Inacio <span dir="ltr"><<a href="mailto:roinacio@gmail.com" target="_blank">roinacio@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi, it's possible to rewrite a mobile URL using cookies?<div>For example, when you acess a URL with a mobile device (android) , nginx shoul read the cookie and redirect this device according to the android model ...</div>
<div><br></div><div>Something like this<br></div><div><br></div><div>From Samsung Galaxy GTI900 redirect to <a href="http://mysite.com/gti900" target="_blank">http://mysite.com/gti900</a></div><div>From Samsung Tables I200 redirect to <a href="http://mysite.com/i200" target="_blank">http://mysite.com/i200</a></div>
<div><br></div><div>It's possible ?</div><div>Thanks.</div><div><br></div><div><br></div></div>
<br></div></div>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><span class="HOEnZb"><font color="#888888"><br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br>
<br clear="all"><div><br></div>-- <br>regards,<br>Nurahmadie<br>--<br>
</font></span></div>
<br>_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br></blockquote></div><br></div>