BlaPageBlaPage
It's about Internet – SEO, Black Hat SEO, Wordpress, Personal Computers, Technology, WebHosting

Mobile Redirection .htaccess Script

This simple .htaccess redirection script wil first check the useragent in the .htaccess file and if they match to the one’s listed below then it will send those visitors to the mobile version of your website.

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} (mobile|android|blackberry|brew|cldc|docomo|htc|j2me|micromax|lg|midp|mot|motorola|netfront|nokia|obigo|openweb|opera.mini|palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|vodafone|wap|webos|windows.ce) [NC]
RewriteRule ^(.*)$ 
http://www.m.blapage.com [R=302,L]

Hope this BlaPage was helpful, Mobile Redirection .htaccess Script.


Link To This BlaPage From Your Website :

Category: Blogging, Customizations, Htaccess, Scripts, Wordpress

Tagged: ,

Comments are closed.

Facebook FanPage

Follow BlaPage on Twitter