Keeping iPads and Tablets from redirecting to mobile site

You may wish to prevent redirecting to your mobile site for iPad and tablet users (and still keep mobile phone users redirected). Here's a javascript that adds a little code on the end of the one generated by the system ( &t=false ). As always - add this between the head tags of any page you want to use it on.

<script type="text/javascript" src="http://detect.deviceatlas.com/redirect.js?d=http://&m=http://yourmobilesiteurl&t=false"></script>

Replace "yourmobilesiteurl" with the url of your mobile web site.

Example: if your main site is getgomobi.com and your mobile site is getgomobi.mobi , then replace "yourmobilesiteurl" with "getgomobi.mobi"

the code would look like this:

<script type="text/javascript" src="http://detect.deviceatlas.com/redirect.js?d=http://&m=http://getgomobi.mobi&t=false"></script>

When you test make sure to clear the caches of the browsers to get a clean loading of the new code.

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Detect/redirect code basics

Once you've built your mobile web site, the next step is to make it available to your visitors....

Detect/redirect script for Wordpress (and other CMS tools)

Since Wordpress pages are built out of a combination of headers, footers, etc., it's a little...

Detect/redirect - where does the code go?

In your site builder there are 4 different options for your mobile site detect/redirect code:...

Avoiding a mobile/main site redirect loop

Having either a Source Domain or the Full Website feature "on" causes the service to mobilize...

Powered by WHMCompleteSolution