|
Revision 2, 0.6 kB
(checked in by fabien, 3 years ago)
|
initial import
|
| Line | |
|---|
| 1 |
Options +FollowSymLinks +ExecCGI |
|---|
| 2 |
|
|---|
| 3 |
<IfModule mod_rewrite.c> |
|---|
| 4 |
RewriteEngine On |
|---|
| 5 |
|
|---|
| 6 |
# we skip all files with .something |
|---|
| 7 |
RewriteCond %{REQUEST_URI} \..+$ |
|---|
| 8 |
RewriteCond %{REQUEST_URI} !\.html$ |
|---|
| 9 |
RewriteRule .* - [L] |
|---|
| 10 |
|
|---|
| 11 |
# we check if the .html version is here (caching) |
|---|
| 12 |
RewriteRule ^$ index.html [QSA] |
|---|
| 13 |
RewriteRule ^([^.]+)$ $1.html [QSA] |
|---|
| 14 |
RewriteCond %{REQUEST_FILENAME} !-f |
|---|
| 15 |
|
|---|
| 16 |
# no, so we redirect to our front web controller |
|---|
| 17 |
RewriteRule ^(.*)$ index.php [QSA,L] |
|---|
| 18 |
</IfModule> |
|---|
| 19 |
|
|---|
| 20 |
# big crash from our front web controller |
|---|
| 21 |
ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly" |
|---|