diff --git a/railties/configs/apache.conf b/railties/configs/apache.conf index fe68ae5d42..d3c9983451 100755 --- a/railties/configs/apache.conf +++ b/railties/configs/apache.conf @@ -18,6 +18,14 @@ Options +FollowSymLinks +ExecCGI # Example: # RewriteRule ^(.*)$ dispatch.fcgi [QSA,L] RewriteEngine On + +# If your Rails application is accessed via an Alias directive, +# then you MUST also set the RewriteBase in this htaccess file. +# +# Example: +# Alias /myrailsapp /path/to/myrailsapp/public +# RewriteBase /myrailsapp + RewriteRule ^$ index.html [QSA] RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f