Mobile and Tablets sites

More of the people I know, started to complain that the browsers on smartphones and tablets do not have convenient sites with easy and accessible interface for this type of Internet user. For that, it seems that is required by the site administrator so dedicated to present a version specially created for these visitors. Server-side settings can implement a redirection of these visitors to a page dedicated to using the .htaccess file of that site.
One way to detect and redirect Android users is using the following code:

RewriteCond %{HTTP_USER_AGENT} ^.*Android.*$
RewriteRule ^(.*)$ [R=301]

This will redirect those users to instead of There in that path I can include info to be accessed by Android users.

For the IPad users I have this code:

RewriteCond %{HTTP_USER_AGENT} ^.*iPad.*$
RewriteRule ^(.*)$ [R=301]

and with this I will redirect my visitor to

As you can see this lines can be included on one .htaccess file and then all you have to do is to wait 😀

Success with your redirects !!!

Permanent link to this article:

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.