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||palm|psp|samsung|sanyo|sch|sonyericsson|symbian|symbos|teleca|up.browser|vodafone|wap|webos|windows.ce) [NC]
RewriteRule ^(.*)$ [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