# Automne general .htaccess file. 
# Author Sbastien Pauchet <sebastien.pauchet@ws-interactive.fr>

# Errors documents. 
# The 404.php must be the 404 error document, but you can create a specific design with a file 404.html which will be displayed by the 404.php file
ErrorDocument 404 /404.php
# The 403.php must be the 403 error document, but you can create a specific design with a file 403.html which will be displayed by the 403.php file
ErrorDocument 403 /403.php

# Remove files listing
Options -indexes

# Directory Index
DirectoryIndex index.php

# Files access
Allow from all

# Add PHP5 CGI Handler if needed
# Uncomment the following line to use PHP as a CGI
#AddHandler php5-cgi .php

# Some PHP configurations
<IfModule mod_mime.c>
	<IfModule mod_php5.c>
		php_flag magic_quotes_gpc		Off
		php_flag magic_quotes_runtime	Off
		php_flag magic_quotes_sybase	Off
		php_flag allow_call_time_pass_reference Off
		php_flag register_globals 		Off
		php_flag allow_url_include		Off
		php_flag expose_php				Off
	</IfModule>
</IfModule>

# To allow static files cache (2 weeks). 
# Uncomment the following lines (mod_headers is needed)
# Disabled by default.
#<Ifmodule mod_headers.c>
#	<FilesMatch "\.(ico|jpg|jpeg|png|gif|swf|js|css|ttf|otf|eot|woff)$">
#		Header set Cache-Control "max-age=1209600, public"
#	</FilesMatch>
#</IfModule>

# To force usage of Google Chrome Frame for IE6,7,8
# Uncomment the following lines (mod_setenvif and mod_headers are needed)
# GCF must be installed
# Disabled by default.
#<IfModule mod_setenvif.c>
#  <IfModule mod_headers.c>
#    BrowserMatch chromeframe gcf
#    Header append X-UA-Compatible "chrome=1" env=gcf
#  </IfModule>
#</IfModule>

# To remove .php extension of generated pages,
# Uncomment the following lines (mod_rewrite is needed)
# You must also add the following constant in config.php file :
# define('STRIP_PHP_EXTENSION', true);
# Disabled by default.
#<IfModule mod_rewrite.c>
#	RewriteEngine On
#	RewriteCond %{REQUEST_FILENAME} !-f
#	RewriteCond %{REQUEST_FILENAME} !-d
#	RewriteRule ^([^\.]+)$ $1.php [NC,L]
#</IfModule>