By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,544 Members | 2,065 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,544 IT Pros & Developers. It's quick & easy.

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

P: n/a
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@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Sep 16 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
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:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#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/...tance&ln=en-us.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
| From: David Thielen <th*****@nospam.nospam>
| Subject: IIS question - feed different index.htm page for mobile devices
| Date: Mon, 15 Sep 2008 22:39:02 -0600
| Reply-To: th*****@nospam.nospam
| Message-ID: <a0********************************@4ax.com>
| 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!TK2MSF TNGP03.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@at******@windward.dot.dot.net
| Windward Reports -- http://www.WindwardReports.com
| me -- http://dave.thielen.com
|
| Cubicle Wars - http://www.windwardreports.com/film.htm
|

Sep 16 '08 #2

P: n/a
"David Thielen" <th*****@nospam.nospamwrote in message
news:a0********************************@4ax.com...
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.

--
Anthony Jones - MVP ASP/ASP.NET

Sep 16 '08 #3

P: n/a
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)
David Thielen wrote:
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@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Sep 16 '08 #4

P: n/a
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
On Mon, 15 Sep 2008 22:39:02 -0600, David Thielen
<th*****@nospam.nospamwrote:
>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@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

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

david@at******@windward.dot.dot.net
Windward Reports -- http://www.WindwardReports.com
me -- http://dave.thielen.com

Cubicle Wars - http://www.windwardreports.com/film.htm
Sep 16 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.