Posted on: 12/2/2013 9:30:57 AM | Views : 775

Hi. My project is in asp.net. The domain is site.com. The question is, is it okay for SEO and Google Adsense if I use this code for mobile users or is better to use redirect in codebehind (C#). I have asked it from many forums (adsense forum and google forum), but nobody could answer to my question. Thats' why I'm asking here. Please, do not scold me, dear moderators.
<script type="text/javascript"> var useragent = navigator.userAgent; var isMobile = !!useragent.match(/iPhone|Android|Blackberry|Sony|Nokia|Motorola|Samsung/i); if(isMobile) //call to mobile apps window.location = "http://mobile-site.com" </script>

Go to the complete details ...