url rewriting - URL Rewrite/Redirect to mobile pages in ASP.NET -


i'm working on mobile version of asp.net website , need navigating mobile pages.

i'm using url rewrite module 2.0 , goal have url displayed user in form of m.example.com

here examples:

input url: www.example.com/mobile m.example.com  uses: /mobile/default.aspx  url shown: m.example.com       input url: www.example.com/mobile/contact.aspx m.example.com/contact.aspx  uses: /mobile/contact.aspx  url shown: m.example.com/contact.aspx 

i have rules remove /default.aspx , add www. when needed, can guarantee conditions.

i'm thinking redirect /mobile/ page, rewrite m., unless there better way have iis 7.5 know aspx page use when sees m. url.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -