Jump to content

Recommended Posts

Posted

Ce n'est pas anormal.

Donne plus de détails, si tu souhaites une réponse plus développée. ;)

Jean-Luc

Posted

Si tu parles de RewriteCond ou RewriteRule, c'est normal parce que tu peux avoir plusieurs règles, éventuellement conditionnelles.

Idem pour RewriteOptions ...

Si tu parles de RewriteEngine, cela ne l'est pas... on n'active qu'une seule fois la réécriture avec "RewriteEngine on" :P

Posted

en fait j' ai ceci dans mon htaccess:

Options +FollowSymlinks 
RewriteEngine on

RewriteBase /

RewriteRule ^(.*)\.html$ /$1.php [QSA,L]
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /404.php

RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^-?$ [OR]
RewriteCond %{HTTP_USER_AGENT} Advanced\ Email\ Extractor [OR]
RewriteCond %{HTTP_USER_AGENT} almaden [NC,OR]
RewriteCond %{HTTP_USER_AGENT} _AT_nonymouse [OR]
RewriteCond %{HTTP_USER_AGENT} Art-Online [OR]
RewriteCond %{HTTP_USER_AGENT} CherryPicker [OR]
etc......
etc......
etc......
etc......
etc......
RewriteCond %{HTTP_USER_AGENT} Zeus [OR]
RewriteCond %{HTTP_REFERER} ^XXX
RewriteRule ^.*$ http://www.google.ca [R,L]

Posted

Le second "RewriteEngine on" est superflu... sinon, rien d'anormal.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...