• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mobile Device site rewrite rule
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mobile Device site rewrite rule


  • Subject: Re: Mobile Device site rewrite rule
  • From: Kieran Kelleher <email@hidden>
  • Date: Thu, 07 Jul 2011 15:24:08 -0400

Pascal,

I am talking about layout/styling!

Background: I have a crappy desktop table-based static layout done by a "designer" using some Adobe auto-generated output from a few weeks ago. I added my jQuery logic and WO direct actions to that for the few small bits of "dynamic logic" needed by the customer.

Today, I was asked for a mobile version of this one-page site (it is a landing page from a mass snail-mail campaign) and since the original version is impossible to just style as mobile with CSS due to its awful non-semantic layout, and since it is too late to find a web designer who can redo the entire thing, I am creating a very simple semantic layout for mobile. So, I am just going to use apache rewrite rule on the user agent to rewrite mobile device requests to a different URL containing the mobile site.

What I am looking for is the huge list of mobile user agents as might be used in this example:

http://stackoverflow.com/questions/1005153/auto-detect-mobile-browser-via-user-agent

Either way, my objective is simple:
Deliver mobile site home page to mobile (or small-screen devices) and regular home page to the rest. And I need to do this using either apache and/or javascript - no java or WebObjects is involved in rendering this site home page.


On Jul 7, 2011, at 2:59 PM, Pascal Robert wrote:

>
> Le 2011-07-07 à 14:53, Kieran Kelleher a écrit :
>
>> Does anyone have a comprehensive set of RewriteCond statements that I can copy/paste for a mobile site rewrite rule?
>
> I guess the "mobile site" is using REST or DirectActions? If so, look at my ERRest slides (the Friday talk) for an example, in the Versionning section. You just need to change /ra to /wa if you are using DAs.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Mobile Device site rewrite rule
      • From: David Holt <email@hidden>
References: 
 >Mobile Device site rewrite rule (From: Kieran Kelleher <email@hidden>)
 >Re: Mobile Device site rewrite rule (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: Mobile Device site rewrite rule
  • Next by Date: Re: Apple Representation On WebObjects-Dev Mailing List?
  • Previous by thread: Re: Mobile Device site rewrite rule
  • Next by thread: Re: Mobile Device site rewrite rule
  • Index(es):
    • Date
    • Thread