Skip to content

Commit

Permalink
Merge pull request #18 from hughevans/patch-1
Browse files Browse the repository at this point in the history
Rewriting URLs like this breaks Rails in production on Apache.
  • Loading branch information
sporkd committed May 21, 2011
2 parents abe1841 + b2be78d commit 405f9dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions templates/project/files/htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -345,11 +345,11 @@ FileETag None
# Option 1:
# Rewrite "domain.com/foo -> domain.com/foo/"

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
RewriteRule ^(.*)$ /$1/ [R=301,L]
</IfModule>
#<IfModule mod_rewrite.c>
# RewriteCond %{REQUEST_FILENAME} !-f
# RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/|#(.*))$
# RewriteRule ^(.*)$ /$1/ [R=301,L]
#</IfModule>

# ----------------------------------------------------------------------

Expand Down

0 comments on commit 405f9dd

Please sign in to comment.