View Single Post
bassguy86

 
bassguy86's Avatar
 
Member Since: Feb 07, 2010
Posts: 58
bassguy86 is on a distinguished road
Mac Specs: MacBook Black 2.4 GHz Intel Core 2 Duo, 4GB 667 MHz DDR2 SDRAM 320gb 7200rpm HDD Snow Leopard

bassguy86 is offline
Quote:
Originally Posted by DenAtTheDBM View Post
Code:
<script type="text/javascript">// <![CDATA[
 var mobile = (/iphone|ipad|ipod|android|blackberry|mini|windows\sce|palm/i.test(navigator.userAgent.toLowerCase()));
 if (mobile) { document.location = "http://www.youtube.com";}
// ]]></script>
The above code should redirect a mobile browser to youtube. So, just replace the youtube url with the url of your mobile site.
I tried putting in the .mobi version of my site and it gave a "bad gateway" response. Is there a way I could put the path to the mobile folder on my server in the youtube spot and it work?

Check out some of my Design work.
www.jonnypye.com
QUOTE Thanks