RewriteEngine On
RewriteCond %{HTTP_HOST} ^domaine.com$
RewriteCond %{SERVER_PORT} ^80$
RewriteRule (.*)$ http://www.domaine.com/$1 [R=301,L]
AddType application/x-httpd-php5 .php
AddType application/x-httpd-php5 .html .htm
AddType application/x-httpd-php5 .
js
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|
js|css|swf)(\.gz) $">
Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
</FilesMatch>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|
js|css|swf)(\.gz) ?$">
Header unset ETag
FileETag None
</FilesMatch>
<FilesMatch "\.(avi|mov|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>