diff options
Diffstat (limited to 'railties/configs')
-rwxr-xr-x | railties/configs/apache.conf | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/configs/apache.conf b/railties/configs/apache.conf index 28c4c57aad..499477c57b 100755 --- a/railties/configs/apache.conf +++ b/railties/configs/apache.conf @@ -5,6 +5,8 @@ Options +FollowSymLinks +ExecCGI # Redirect all requests not available on the filesystem to Rails RewriteEngine On +RewriteRule ^$ index.html [QSA] +RewriteRule ^([^.]+)$ $1.html [QSA] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ /dispatch.cgi?$1 [QSA,L] |