smart_techie

smart_techie does not currently provide support for this item.

Popular questions for this item

Can I use this Script on HTML webpages ?

Yes you can, as long as your server has PHP & .htaccess support. Please make sure that you hosting provider allows you to execute HTML files as PHP . Incase your hosting provider does not provide the option of executing HTML files as PHP , you have a work around

Rename your .html file to .php & Add this to your .htaccess and change the index.html to index.php

RewriteEngine On
RewriteRule ^index.html /index.php [L]

This way you will maintain the same link & your SEO would not be affected either.

Can I redirect only the Mobiles & not the Tablets ?

Yes, this is perfectly possible

if(MobileSniffer::isRequestForMobile()){
    if(!MobileSniffer::isTablet()){
         MobileSniffer::redirectByPreference();
    }
}

Can I redirect only for iPad and not iPod or iPhone

Yes, this scenario is possible

if(MobileSniffer::isDevice(Device::iPad)){
     // Put your redirection logic here, or leave the redirection to the Sniffer
         MobileSniffer::redirectByPreference();
}
<pre /></pre>

Can I redirect to different pages based on different devices ?

Yes you can

if (MobileSniffer::isDevice(Device::Android))
    header("Location: ../android/");
elseif (MobileSniffer::isDevice(Device::Apple))
    header("Location: ../apple/");
elseif (MobileSniffer::isDevice(Device::BlackBerry))
    header("Location: ../bb/");
elseif (MobileSniffer::isDevice(Device::Symbian))
    header("Location: ../symb/");
elseif (MobileSniffer::isDevice(Device::Windows))
    header("Location: ../win/");

Show more

by
by
by
by
by
by