possibly there are many ways how to do that. one option is you need to add some javascript to you web page to detect the screen width like this:
HTML Code:
<script type="text/javascript">
if (screen.width <= 800) {
window.location = "http://mydomain.com";
}
</script>
another option is to use some rewrite rules if you are on Apache server, you can search on that over the net. I think you can find it easily.
check that out and leave feedback to us! :up:
--------------- Added [DATE]1436516878[/DATE] at [TIME]1436516878[/TIME] ---------------
by the way, just a quick search at SOF and found this great solution:
PHP Code:
<script type="text/javascript">
function RedirectSmartphone(url){
if (url && url.length > 0 && IsSmartphone())
window.location = url;
}
function IsSmartphone(){
if (DetectUagent("android")) return true;
else if (DetectUagent("blackberry")) return true;
else if (DetectUagent("iphone")) return true;
else if (DetectUagent("opera")) return true;
else if (DetectUagent("palm")) return true;
else if (DetectUagent("windows")) return true;
else if (DetectUagent("generic")) return true;
else if (DetectUagent("ipad")) return true;
else if (DetectUagent("ipod")) return true;
return false;
}
function DetectUagent(name){
var uagent = navigator.userAgent.toLowerCase();
if (uagent.search(name) > -1)
return true;
else
return false;
}
RedirectSmartphone("http://mobile.version.com");
</script>
this is a complete solution for any type of smartphone
source:
Javascript code to redirect mobile phone users