;]
[askyou.git] / public / .htaccess
blob3d3fb88bca6a0a267044e24ca45ac30f34047b8f
1 # General Apache options\r
2 <IfModule mod_fastcgi.c>\r
3         AddHandler fastcgi-script .fcgi\r
4 </IfModule>\r
5 <IfModule mod_fcgid.c>\r
6         AddHandler fcgid-script .fcgi\r
7 </IfModule>\r
8 <IfModule mod_cgi.c>\r
9         AddHandler cgi-script .cgi\r
10 </IfModule>\r
11 Options +FollowSymLinks +ExecCGI\r
13 # If you don't want Rails to look in certain directories,\r
14 # use the following rewrite rules so that Apache won't rewrite certain requests\r
15 \r
16 # Example:\r
17 #   RewriteCond %{REQUEST_URI} ^/notrails.*\r
18 #   RewriteRule .* - [L]\r
20 # Redirect all requests not available on the filesystem to Rails\r
21 # By default the cgi dispatcher is used which is very slow\r
22 \r
23 # For better performance replace the dispatcher with the fastcgi one\r
24 #\r
25 # Example:\r
26 #   RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]\r
27 RewriteEngine On\r
29 # If your Rails application is accessed via an Alias directive,\r
30 # then you MUST also set the RewriteBase in this htaccess file.\r
31 #\r
32 # Example:\r
33 #   Alias /myrailsapp /path/to/myrailsapp/public\r
34 #   RewriteBase /myrailsapp\r
36 RewriteRule ^$ index.html [QSA]\r
37 RewriteRule ^([^.]+)$ $1.html [QSA]\r
38 RewriteCond %{REQUEST_FILENAME} !-f\r
39 <IfModule mod_fastcgi.c>\r
40         RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]\r
41 </IfModule>\r
42 <IfModule mod_fcgid.c>\r
43         RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]\r
44 </IfModule>\r
45 <IfModule mod_cgi.c>\r
46         RewriteRule ^(.*)$ dispatch.cgi [QSA,L]\r
47 </IfModule>\r
49 # In case Rails experiences terminal errors\r
50 # Instead of displaying this message you can supply a file here which will be rendered instead\r
51 \r
52 # Example:\r
53 #   ErrorDocument 500 /500.html\r
55 ErrorDocument 500 "<h2>Application error</h2>Rails application failed to start properly"