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

How to redirect web page to handheld devices?

P: n/a
Is there a way for my website to redirect handheld and mobile browsers
to another set of pages that are optimized for mobile/tiny browsers?
I've seen this done but I couldn't find any sign of a redirect in the
html.

I've looked for information about this in usenet archives, but to no
avail.

Thanks very much for any help in advance!
Jul 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Carla <ca******@hotmail.com> wrote:
Is there a way for my website to redirect handheld and mobile browsers
to another set of pages that are optimized for mobile/tiny browsers?


The best way is to create a structurally logical page with the proper,
current, and valid HTML. A PDA should display this just fine.
--
Michael Wilcox
mjwilco at yahoo dot com
Essential Tools for the Web Developer - http://mikewilcox.t35.com
Jul 20 '05 #2

P: n/a
ca******@hotmail.com (Carla) wrote in message news:<1e**************************@posting.google. com>...
Is there a way for my website to redirect handheld and mobile browsers
to another set of pages that are optimized for mobile/tiny browsers?


If you really want to do this then you will have to parse the
User-Agents of the incoming requests and then serve the appropriate
pages. Or you could use dynamically built pages dependant on
User-Agent.

Have a look at the specifications for UAProf (
www.openmobilealliance.org/ ) and CC/PP Processing (
http://www.w3.org/Mobile/CCPP/ ) as work is well underway for
tailoring content to specific devices. There are some Java API's
around for working with the UAProf and CC/PP spec:

http://jcp.org/aboutJava/communitypr...188/index.html.

http://jcp.org/aboutJava/communitypr...124/index.html.

http://sourceforge.net/mailarchive/f...?forum_id=9261
Jul 20 '05 #3

P: n/a
On Fri, 27 Feb 2004 00:32:21 GMT, "Michael Wilcox"
<mj*****************@yahoo.com> wrote:
Carla <ca******@hotmail.com> wrote:
Is there a way for my website to redirect handheld and mobile browsers
to another set of pages that are optimized for mobile/tiny browsers?
The best way is to create a structurally logical page with the proper,
current, and valid HTML.


And with a flexible layout, of course: no fixed table widths or any
absolute length units.

And with a stylesheet using media type "handheld". This could, for
example, suppress certain decorative images.
A PDA should display this just fine.


I can (with difficulty) think of one or two cases where it might be
necessary to provide a separate page/subsite for a PDA, but offering the
user a link to get to it is much more reliable than trying to redirect
based on browser-sniffing.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.