smart_techie

smart_techie supports this item

Supported

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

Contact the author

This author will respond to buyers' questions and provides limited support through their own support system.

Item support includes:

  • Availability of the author to answer questions
  • Answering technical questions about item’s features
  • Assistance with reported bugs and issues
  • Help with included 3rd party assets

However, item support does not include:

  • Customization services
  • Installation services

View the item support policy

by
by
by
by
by
by