Webpage Detect Redirect iOS & Android
5 posts
Page 1 of 1
Earlier yesterday I started working on making the iOS section of Alternative App's website.
So what I have is when you go to the site on say your iPhone, iPad, or iPod Touch it'll redirect to the iOS section of the webpage.
If you want to do this as well you can put the code below into your head tags.
So what I have is when you go to the site on say your iPhone, iPad, or iPod Touch it'll redirect to the iOS section of the webpage.
If you want to do this as well you can put the code below into your head tags.
Code: Select all
<?php
// Redirect iOS visitors
if(strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') ||
strpos($_SERVER['HTTP_USER_AGENT'], 'iPad')){
header("Location: http://yourwebsite.com/ios");
}
// Redirect Android visitors
if(strpos($_SERVER['HTTP_USER_AGENT'], 'Android')){
header("Location: http://yourwebsite.com/android");
}
?>
Nice tut mikethedj4 cooll;
I have never seen something like this on here..
rep+
I have never seen something like this on here..
rep+
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo
I was actually wondering how this was done, thanks alot Mike!
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that
You're welcome! Glad this became a help for you bro
5 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023