<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">http://wiki.nginx.org/HttpCoreModule#.24cookie_COOKIE</a></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<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><br clear="all"><div><br></div>-- <br>regards,<br>Nurahmadie<br>--<br>

</div>