root/trunk/web/.htaccess

Revision 2, 0.5 kB (checked in by fabien, 3 years ago)

initial import

Line 
1 Options +FollowSymLinks +ExecCGI
2
3 RewriteEngine On
4
5 # we skip all files with .something
6 RewriteCond %{REQUEST_URI} \..+$
7 RewriteCond %{REQUEST_URI} !\.html$
8 RewriteRule .* - [L]
9
10 # we check if the .html version is here (caching)
11 RewriteRule ^$ index.html [QSA]
12 RewriteRule ^([^.]+)$ $1.html [QSA]
13 RewriteCond %{REQUEST_FILENAME} !-f
14
15 # no, so we redirect to our front web controller
16 RewriteRule ^(.*)$ index.php [QSA,L]
17
18 # big crash from our front web controller
19 ErrorDocument 500 "<h2>Application error</h2>SymFony application failed to start properly"
Note: See TracBrowser for help on using the browser.