Automatic Mobile Detect and Redirect

I had been working on a mobile version of my library’s website for a short while when a colleague sent me a link to Brian Herzog’s excellent post on automatic mobile browser detection. He gives a step-by-step guide to using a little PHP and a free function generator from the website

Now when someone tries to access the library website with a mobile phone they will automatically be directed to our mobile friendly site. I wrote a scaled down version of our main site in a few hours with a few pages listing our contact information, hours, and linking to our catalog, etc.

This was the first time I ever used PHP and I was able to get it to work after I toyed with it for a while.

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s