Is there a way in IIS of detecting a user is browsing via a mobile device [maybe by checking their User Agent against a list?] so they can be redirected to a mobile-specific website? Or would this logic have to occur at the application level? Note: All websites involved are HTTPS.
It's IIS 7 running on Windows Sever 2008 R2
Here's a rule you can use in IIS 7.5 with the URL Rewrite 2.0 module installed.
Example is copied from http://forums.iis.net/t/1169853.aspx
This kind of detection is usually done with a script on a web page, however it's possible to do some URL rewriting on IIS with a third-party software: http://www.isapirewrite.com/
I think this code doesn't support some symbian phones , palm phones , Zune player and ipod touch browsers.
example (Zune browser) : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; XBLWP7; ZuneWP7)
example (SymbianOS v9.1): User-Agent: Mozilla/5.0 (SymbianOS/9.1; U; [en-us]) AppleWebKit/413 (KHTML, like Gecko) Safari/413
You can find mobile detection code (based on user agent) for IIS, ASP, ASP.NET and many more on http://detectmobilebrowsers.com/. Here is their suggestion for IIS: