Rev | Line | |
---|
[19] | 1 | Options +FollowSymLinks +ExecCGI |
---|
[255] | 2 | <IfModule mod_headers.c> |
---|
| 3 | Header set Access-Control-Allow-Origin "*" |
---|
| 4 | </IfModule> |
---|
[19] | 5 | <IfModule mod_rewrite.c> |
---|
| 6 | RewriteEngine On |
---|
| 7 | |
---|
| 8 | # uncomment the following line, if you are having trouble |
---|
| 9 | # getting no_script_name to work |
---|
| 10 | #RewriteBase / |
---|
| 11 | |
---|
| 12 | # we skip all files with .something |
---|
| 13 | # comment the following 3 lines to allow periods in routes |
---|
| 14 | RewriteCond %{REQUEST_URI} \..+$ |
---|
| 15 | RewriteCond %{REQUEST_URI} !\.html$ |
---|
| 16 | RewriteRule .* - [L] |
---|
| 17 | |
---|
| 18 | # we check if the .html version is here (caching) |
---|
| 19 | RewriteRule ^$ index.html [QSA] |
---|
| 20 | RewriteRule ^([^.]+)$ $1.html [QSA] |
---|
| 21 | RewriteCond %{REQUEST_FILENAME} !-f |
---|
| 22 | |
---|
| 23 | # no, so we redirect to our front web controller |
---|
| 24 | RewriteRule ^(.*)$ index.php [QSA,L] |
---|
| 25 | </IfModule> |
---|
| 26 | |
---|
| 27 | # big crash from our front web controller |
---|
| 28 | ErrorDocument 500 "<h2>Application error</h2>symfony application failed to start properly" |
---|
Note: See
TracBrowser
for help on using the repository browser.