
Htaccess et redirection
A fin d’augmenter le trafic d’un site web, un de nos clients nous a demandé de faire la redirection vers un sous domaine en utilisant différent méthode.
Apres étude et analyse de différents méthodes pour réaliser cette redirections, nous avons optez pour une redirection htaccess. Voici le code qu’on pense que toutes personne aura d’ici quelques temps besoin pour bien faire la redirections vers un dossier ou un sous domaine afin d’augmenter sa visibilité par les moteurs de recherches mobiles .
—————————————————————
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ‘ipod’ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘iphone’[NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘ipad’ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘android’ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘palm’ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘wibdows mobile 7′ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘Windows mobile’ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘sambian’ [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ‘blackberry’ [NC]
RewriteRule ^(.*) http://www.votresite.com/dossier/ [R=301,L]
—————————————————————



