

#Header set X-UA-Compatible "IE=edge"

Options -Indexes
ServerSignature Off

Options +FollowSymLinks


<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !\.
RewriteCond %{REQUEST_METHOD} !POST$
RewriteRule ^(.*) %{REQUEST_URI}/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]

RewriteCond %{HTTP_HOST} ^winebrotherhoods.org$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^winebrotherhoods.fr$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^www.winebrotherhoods.fr$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^www.winebrotherhoods.net$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^winebrotherhoods.net$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^ficb.net$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^www.ficb.net$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^winebrotherhoods.com$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^www.winebrotherhoods.com$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^www.ficb.fr$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]

RewriteCond %{HTTP_HOST} ^ficb.fr$
RewriteRule ^(.*) http://www.winebrotherhoods.org/$1 [QSA,L,R=301]


RewriteRule ^news/16/31/36eme-Congres-Mondial-de-la-Vigne-et-du-Vin/$ http://www.winebrotherhoods.org/fr/infos-generales/actualites/ [R=301,L]
RewriteRule ^en_US/presentation/$ http://www.winebrotherhoods.org/fr/ficb/qui-sommes-nous/ [R=301,L]
RewriteRule ^news/48/33/Registration-now-open-for-the-2014-FICB-International-Congress-in-Reims-and-the-Champagne-region-from-29-May-to-3-June-2014/$ http://www.winebrotherhoods.org/en/general-information/news/ [R=301,L]

</IfModule>

<IfModule mod_header.c>
# Disable ETags
Header unset ETag
FileEtag None
</IfModule>

<IfModule mod_deflate.c>
# Compress css, plaintext, xml, gif, and images in transport.
AddOutputFilterByType DEFLATE text/css text/plain text/xml image/gif image/jpeg image/png
</IfModule>

<IfModule mod_expires.c>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
# Set expires tags on various files... so that the browser wont attempt to reload them.
ExpiresActive On
ExpiresDefault "access plus 1 year"
<IfModule mod_header.c>
  # Setting cache control to public allowes proxy servers to cache the items too.
  Header set Cache-Control "public"
</IfModule>
</FilesMatch>
</IfModule>
