vendredi 12 août 2016

I only want apple mobile devices to access a directory, if not a apple mobile device, redirect to another page

so, i have a landing page which i want everyone to be able to access, but in the same page i have a directory that i only want ios devices to be able to reach(example.com/app). i achieved the blocking part with code i found on the net and .htaccess

SetEnvIf User-Agent "iPhone" allow_ua SetEnvIf User-Agent "iPad" allow_ua SetEnvIf User-Agent "iPod" allow_ua Order deny,allow deny from all allow from env=allow_ua

but this blocks everyone even from example.com

i now want the rest of devices that are not from apple to be redirected to another site(e.g: google.com)

what should i do to achieve this?




Aucun commentaire:

Enregistrer un commentaire