EarningWarrior - The War of Marketing.
Android Phone Redirecting Code [Mobile Redirecting Code] - Printable Version

+- EarningWarrior - The War of Marketing. (http://earningwarrior.com)
+-- Forum: Marketing Discussion (http://earningwarrior.com/F-Marketing-Discussion)
+--- Forum: Graphics, Programming and Webmaster (http://earningwarrior.com/F-Graphics-Programming-and-Webmaster)
+--- Thread: Android Phone Redirecting Code [Mobile Redirecting Code] (/P-Android-Phone-Redirecting-Code-Mobile-Redirecting-Code)



Android Phone Redirecting Code [Mobile Redirecting Code] - M3nT05 - 10-24-2017

THIS IS THE MOST USEFUL CODE,Android Browser Redirecting Code. Put Your URL JUST.
PHP Code:
<script type="text/javascript" language="javascript">// <![CDATA[
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPad/i)) || (navigator.userAgent.match(/blackberry/gi)) || (navigator.userAgent.match(/android/gi)))
{
 
  location.replace("YOURURL");
}
// ]]></script>