1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| Options +FollowSymLinks
SetEnv MAGIC_QUOTES 0
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag display_errors on
php_flag allow_url_fopen off
RewriteEngine on
RewriteBase /
FileETag none
ReWriteCond %{SERVER_PORT} !^80$
RewriteCond %{HTTP_HOST} !^dev\.(.*) [NC]
RewriteCond %{HTTP_HOST} !^iteractif$ [NC]
RewriteRule ^(.*)$ http://dev.iteractif.com/$1 [QSA,R=301,NC,L]
############### Images #######################
RewriteRule ^img_(.+[png-jpg-jpeg-gif]+)$ /chemin/vers/images/$1 [QSA,NC,L]
############### css#######################
RewriteRule ^css\.css$ /chemin/vers/css.css [QSA,NC,L]
############### Js #######################
RewriteRule ^jquery\.js$ /chemin/vers/jquery/jquery-1.8.3.js [QSA,NC,L] #Jquery
RewriteRule ^js\.js$ /chemin/vers/js.classe.js [QSA,NC,L]
############### pages ####################
RewriteRule ^([_0-9a-zA-Z/-])?$ /index.php#$1 [QSA,NC,L] |
Partager