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
   |         SetEnv PHP_VER 5
	SetEnv SESSION_USE_TRANS_SID 0
	Options +FollowSymLinks +ExecCGI
	mod_gzip_on Off
		  RewriteEngine On
		  # Permettre a IE de reconnaitre le win_png.htc de retraitement des png transparents
		  #AddType text/x-component .htc
		  #RewriteBase /
		  # we skip all files with .something
		  RewriteCond %{REQUEST_URI} \..+$
		  RewriteCond %{REQUEST_URI} !\.html$
		  RewriteCond %{REQUEST_URI} !\.php
		  RewriteRule .* - [L]
		  # we check if the .html version is here (caching)
		  # RewriteRule ^$ index.html [QSA] # Suppression du "/" pour un sous-dossier
		  RewriteRule ^$ /index.html [QSA]
		  RewriteRule ^([^.]+)$ $1.html [QSA]
		  RewriteCond %{REQUEST_FILENAME} !-f
		  # no, so we redirect to our front web controller
		  # RewriteRule ^(.*)$ index.html [QSA] # Suppression du "/" pour un sous-dossier
		  RewriteRule ^(.*)$ /index.php [QSA,L]
		  # hidden frontoffice controller
		  # RewriteRule ^(.*)$ index.html [QSA] # Suppression du "/" pour un sous-dossier
		  RewriteRule ^index\.php/(.*)$ /index.php [QSA,L]
		# big crash from our front web controller
		ErrorDocument 500 "Application error symfony application failed to start properly" | 
Partager