HTACCES

tymallus Messages postés 5 Statut Membre -  
tymallus Messages postés 5 Statut Membre -
Bonjour,

J'ai aussi un problème avec htacces.

J'ai un site invv.be qui est créé un site avec Open Element et mis en ligne.
Afin de le rendre accessible convenablement avec les Ipads je l'ai recréé au format tablette.

Mon problème est que si je mets le site tablette seule en ligne, il s affiche normalement sur la tablette et au format tablette sur le pc.

j'ai mis le site en format pc en ligne. et le site tablette dans un sous dossier .

j'ai modifié htacces afin de rediriger les tablettes sur le sous dossier mais, sans succès.....

quelqu'un sait il m'aider?

J'ai trouvé cela mais, je n'y arrive pas a rediriger. il continue à m'afficher le site au format pc sur ma tablette. ( avec le problème que tout ne s'affiche pas;)

RewriteEngine On RewriteCond %{HTTP_USER_AGENT} "ipod|iphone|ipad" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "android|palm"
RewriteRule (.*) http://www.lagoo.com [R=301,L]

Dans http://m.votredomaine.com, j'avais marqué invv.be/nom du dossier/index.htm

Maintenant, est ce que je dois encore marqué invv.be ou pas?

Je suis totalement largué.......

1 réponse

tymallus Messages postés 5 Statut Membre
 
voici mon htacces:

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/m/.*$
RewriteCond %{HTTP_ACCEPT} "text/vnd.wap.wml|application/vnd.wap.xhtml+xml" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "acs|alav|alca|amoi|audi|aste|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "dang|doco|eric|hipt|inno|ipaq|java|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|opwv" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "palm|pana|pant|pdxg|phil|play|pluc|port|prox|qtek|qwap|sage|sams|sany" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|w3cs|wap-|wapa|wapi" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "wapp|wapr|webc|winw|winw|xda|xda-" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "up.browser|up.link|windowssce|iemobile|mini|mmp" [NC,OR]
RewriteCond %{HTTP_USER_AGENT} "symbian|midp|wap|phone|pocket|mobile|pda|psp" [NC]
#------------- The line below excludes the iPad
RewriteCond %{HTTP_USER_AGENT} !^.*iPad.*$
#-------------
RewriteCond %{HTTP_USER_AGENT} !macintosh [NC] #*SEE NOTE BELOW
RewriteRule ^(.*)$ /m/ [L,R=302]
#Protect .htaccess
<Files .htaccess>
order deny,allow
deny from all
</Files>

il est situé dans mon dossier racine.
J'ai créé un dossier mobile et, il y a dans celui-ci un fichier index.htm qui peut redémarrer le site en format tablettes.
0