This blog site is not meant to be any information that is distributed to the general public. It is to serve as shared documentation between the DNSTC developers; however, if you find something useful and would like to use it, go right ahead.

Tuesday, January 31, 2012

Redirecting the Browser to a Mobile Web Page

imageIn this day in age, most web visitors are now coming from cell phones or mobile devices.  You need to have a version of your website that is designed for mobile devices.  One of the major issues with this is having the ability to detect if the browser is a mobile device.  There are hundreds of different browsers out on mobile devices right now, so I found the following website to help with this:

This site has the open source code you can use to add to your main webpage.  If the webpage detects it is a mobile device, it will automatically redirect to the mobile version of the page.

The following is the .PHP example of this:

No comments:

Post a Comment