Skip to main content
Known Participant
June 30, 2009
Answered

Mobile Device Redirection

  • June 30, 2009
  • 1 reply
  • 1393 views

I'm currently working on some pages intended for mobile devices.

Is there a reliable method of redirecting via a script from my main site to my mobile content directory, if the browser detects a mobile device?

(As an aside, I tried my pages in ADC CS4 and they wouldn't display php files for my chosen devices. Most of the content can be stripped down to html, but is this issue of php/html due to ADC or mobile browser limitations?)

This topic has been closed for replies.
Correct answer David_Powers

David, I am so sorry to have wasted your time...

The fault was entirely down to me using Device Central > File > Open rather than going from Dreamweaver > File > Preview In Browser > Device Central.

A tip to other users, who may (like me) waste the valuable time of professionals - READ THE MANUAL!

Thank you once again.


No problem. Glad you managed to get it sorted.

1 reply

David_Powers
Inspiring
July 2, 2009

You need to set up a testing server to be able to preview PHP pages in Device Central.

Known Participant
July 2, 2009

Hi David

Thank you for the suggestion and the link. I do have MAMP set up and working on my system - so I can follow along happily with some of your extremely helpful books!

However, I am still getting the message "The file type of index.php is not supported on this device!" even though I know the device does display php content. (I have tested it physically using the device itself.)

I have tried unsuccessfully using both these doc types:

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

and


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

David_Powers
Inspiring
July 3, 2009

I have just tested a PHP page in Device Central CS4. It worked fine, using my local testing server and XHTML 1.0 Transitional DOCTYPE.