Activity › Forums › Web Design (WordPress, Joomla, etc.) › Redirecting to mobile website
-
Redirecting to mobile website
Abraham Chaffin replied 15 years, 5 months ago 10 Members · 13 Replies
-
Abraham Chaffin
November 19, 2010 at 5:43 pmThe javascript method is not the best method to use. Better to do something server side, whether it’s through .htaccess or a server side scripting language. Using a server side scripting language to redirect is the better method as it’s easier to override and make exceptions to allow mobile users back to the main site if they choose.
There’s a bit of best practices explained by Google on page 24 of this pdf LINK.
and here:
https://googlewebmastercentral.blogspot.com/2009/11/running-desktop-and-mobile-versions-of.html -
Abraham Chaffin
December 17, 2010 at 9:51 pmThere’s a PHP mobile detection script that is pretty good here:
https://code.google.com/p/php-mobile-detect/
Reply to this Discussion! Login or Sign Up