AddDefaultCharset utf-8
#PROD
#ExpiresByType image/jpg "access plus 2592000 seconds"
#ExpiresByType image/jpeg "access plus 2592000 seconds"
#ExpiresByType image/png "access plus 2592000 seconds"
#ExpiresByType application/javascript "access plus 3600 seconds"
#ExpiresByType text/css "access plus 3600 seconds"
#ExpiresByType text/html "access plus 3600 seconds"

#DEV / TEST
ExpiresByType image/jpg "access plus 30 seconds"
ExpiresByType image/jpeg "access plus 30 seconds"
ExpiresByType image/png "access plus 30 seconds"
ExpiresByType application/javascript "access plus 30 seconds"
ExpiresByType text/css "access plus 30 seconds"
ExpiresByType text/html "access plus 30 seconds"


Options -Indexes

RewriteEngine On 

RewriteCond %{HTTP_HOST} ^fecfo.fr$ 
RewriteRule ^(.*) http://www.fecfo.fr/$0  [QSA,L,R=301]
 
RewriteRule ^sitemap.xml$ sitemap.xml.php [L]

#Demande d'adhésion
RewriteRule ^Demande_synd.html$ /adherez [R=301,L]

#Boutique
RewriteRule ^boutique$ /boutique/affiches  [R=301,L]

RewriteRule ^css/style.css$ /css/style.css.php [L] 
RewriteRule ^js/extra.js$ /js/extra.js.php [L]

RewriteCond %{REQUEST_FILENAME} !-f 
#RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^.*$ mvc.php [L] 

#order deny,allow
#deny from all
#AuthUserFile /home/fecfofreuw/v2/.htpasswd
#AuthName "FEC FO"
#AuthType Basic
#require valid-user


#Boutique
RewriteRule ^boutique$ /boutique/affiches  [R=301,L]

RewriteRule ^css/style.css$ /css/style.css.php [L] 
RewriteRule ^js/extra.js$ /js/extra.js.php [L]

RewriteCond %{REQUEST_FILENAME} !-f 
#RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^.*$ mvc.php [L] 

#order deny,allow
#deny from all
#AuthUserFile /home/fecfofreuw/v2/.htpasswd
#AuthName "FEC FO"
#AuthType Basic
#require valid-user
RewriteRule ^js/extra.js$ /js/extra.js.php [L]

RewriteCond %{REQUEST_FILENAME} !-f 
#RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^.*$ mvc.php [L] 

#order deny,allow
#deny from all
#AuthUserFile /home/fecfofreuw/v2/.htpasswd
#AuthName "FEC FO"
#AuthType Basic
#require valid-user

