source: pro-bachkim-filespace/sourcecode/api.violet.vn/www/web/.htaccess @ 147

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