IIS question - feed different index.htm page for mobile devices

D

David Thielen

A

Allen Chen [MSFT]

Hi Dave,

==================================================
But is there a way in IIS to point it to different page(s) for mobile
devices?
==================================================

As far as I know IIS does't support this currently. In ASP.NET we can check
Request.Browser to know if the request is from a mobile device.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
(e-mail address removed).

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://support.microsoft.com/select/default.aspx?target=assistance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: David Thielen <[email protected]>
| Subject: IIS question - feed different index.htm page for mobile devices
| Date: Mon, 15 Sep 2008 22:39:02 -0600
| Reply-To: (e-mail address removed)
| Message-ID: <[email protected]>
| X-Newsreader: Forte Agent 2.0/32.652
| MIME-Version: 1.0
| Content-Type: text/plain; charset=us-ascii
| Content-Transfer-Encoding: 7bit
| X-Antivirus: avast! (VPS 080915-0, 09/15/2008), Outbound message
| X-Antivirus-Status: Clean
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| NNTP-Posting-Host: 207.224.37.241
| Lines: 1
| Path: TK2MSFTNGHUB02.phx.gbl!TK2MSFTNGP01.phx.gbl!TK2MSFTNGP03.phx.gbl
| Xref: TK2MSFTNGHUB02.phx.gbl
microsoft.public.dotnet.framework.aspnet:76081
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Hi;
|
| This is for a website that is just html pages, no ASP.NET. I want the
| default page to be a different page if it's a mobile device. I can do
| this in ASP.NET by looking at the browser size and redirecting. But is
| there a way in IIS to point it to different page(s) for mobile
| devices?
|
| thanks - dave
|
| david@[email protected]
| Windward Reports -- http://www.WindwardReports.com
| me -- http://dave.thielen.com
|
| Cubicle Wars - http://www.windwardreports.com/film.htm
|
 
A

Anthony Jones

David Thielen said:
Hi;

This is for a website that is just html pages, no ASP.NET. I want the
default page to be a different page if it's a mobile device. I can do
this in ASP.NET by looking at the browser size and redirecting. But is
there a way in IIS to point it to different page(s) for mobile
devices?


What version of IIS?

You might be able to find a URL rewriter that will allow you to query the
headers.

If IIS7 you could use the integrated pipeline to create a .NET module to
handle this rewriting.
 
B

bruce barker

in iis this is done with an isapi filter. pre iis 7.0, these must be
written in c/c++ (though its pretty simple code)

-- bruce (sqlwork.com)
 
D

David Thielen

Thank you everyone.

I think the easiest way is to just create a small ASP.NET app to do
this - that's fast and I know how to do that. I just wanted to check
in case IIS had a redirect for mobile built in.

thanks - dave


Hi;

This is for a website that is just html pages, no ASP.NET. I want the
default page to be a different page if it's a mobile device. I can do
this in ASP.NET by looking at the browser size and redirecting. But is
there a way in IIS to point it to different page(s) for mobile
devices?

thanks - dave

david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm


david@[email protected]
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top