|
|
Member Since: Feb 07, 2010
Posts: 58
Mac Specs: MacBook Black 2.4 GHz Intel Core 2 Duo, 4GB 667 MHz DDR2 SDRAM 320gb 7200rpm HDD Snow Leopard
|

05-05-2012, 09:07 PM
Quote:
Originally Posted by DenAtTheDBM
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?
|
|
|
QUOTE
Thanks
|