GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Android Tablets versus Android Phones in Htaccess (https://gfy.com/showthread.php?t=1051735)

VIXEN ESCORTS 12-29-2011 01:16 PM

Android Tablets versus Android Phones in Htaccess
 
I have been using htaccess to redirect mobile devices like this:

RewriteCond %{HTTP_USER_AGENT} Android [NC,OR]
RewriteCond %{HTTP_USER_AGENT} iPod [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Blackberry [NC,OR]
RewriteCond %{HTTP_USER_AGENT} Symbian [NC,OR]
RewriteCond %{HTTP_USER_AGENT} iPhone [NC]

Is the Android line redirecting ALL android devices ie, tablets and phones or just phones, I assumed it was just phones but want to do something different with Android Tablets now ?

Ta

RonTheDon 12-29-2011 01:29 PM

Quote:

Redirect mobile devices to a dedicated mobile version of your web site
There are several ways you can redirect requests to the mobile version of your web site, using server-side redirects. Most often, this is done by "sniffing" the User Agent string provided by the web browser. To determine whether to serve a mobile version of your site, you should simply look for the "mobile" string in the User Agent, which matches a wide variety of mobile devices. If necessary, you can also identify the specific operating system in the User Agent string (such as "Android 2.1").

Note: Large screen Android-powered devices that should be served full-size web sites (such as tablets) do not include the "mobile" string in the user agent, while the rest of the user agent string is mostly the same. As such, it's important that you deliver the mobile version of your web site based on whether the "mobile" string exists in the user agent.
This is right from the Android Developers site.

uno 12-29-2011 01:31 PM

It pisses people off if they dont' get full sites on full sized tablets IME

VIXEN ESCORTS 12-29-2011 01:35 PM

Ah thanks

grumpy 12-29-2011 02:52 PM

Make your site liquid. Liquid sites fits on all devices.
Sample

http://www.onlypee.com/index_pee.php


All times are GMT -7. The time now is 07:13 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123