mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Reminder for dangers with Alias and mod_rewrite #1752 [dave@cherryville.org]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
d2d38f6700
commit
b66b1fff12
1 changed files with 8 additions and 0 deletions
|
@ -18,6 +18,14 @@ Options +FollowSymLinks +ExecCGI
|
||||||
# Example:
|
# Example:
|
||||||
# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
|
# RewriteRule ^(.*)$ dispatch.fcgi [QSA,L]
|
||||||
RewriteEngine On
|
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 ^$ index.html [QSA]
|
||||||
RewriteRule ^([^.]+)$ $1.html [QSA]
|
RewriteRule ^([^.]+)$ $1.html [QSA]
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
|
|
Loading…
Reference in a new issue