Simple JPG/HTML Not Showing Up in iPhone

Posted by Jascha on Stack Overflow See other posts from Stack Overflow or by Jascha
Published on 2010-06-10T15:30:30Z Indexed on 2010/06/10 15:32 UTC
Read the original article Hit count: 187

Filed under:
|

I'm not familiar with iPhones wants and needs, nor do I have one, but a client wants a screen cap of his site to show up when an iPhone user comes around so I created an .htaccess redirect to an iPhone specific page with this bit of code...

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} iPhone
RewriteCond %{REQUEST_URI} !^/iPhone/
RewriteRule .* /iPhone/ [R]

And the html of the iPhone page...

<html>
<head>
<title>Eatamadedia</title>
</head>
<body style="background-color:#858384;margin:0 auto;">
<img src="../images/iPhonePage.jpg"> 
</body>
</html>

The page redirects just fine, but the .jpg doesn't show up. I can't imagine a simpler page. Anyone know what could be preventing the image from displaying? Does the iPhone require headers?

The site in question is http://eatamedida.com

Thank you in advance for your input. -J

© Stack Overflow or respective owner

Related posts about iphone

Related posts about html