Permalink
Browse files

Rewriting URLs like this breaks Rails in production on Apache.

  • Loading branch information...
1 parent abe1841 commit b2be78dff103069d258a3f004b4125298385cc79 @hughevans hughevans committed May 17, 2011
Showing with 5 additions and 5 deletions.
  1. +5 −5 templates/project/files/htaccess
@@ -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>
# ----------------------------------------------------------------------

0 comments on commit b2be78d

Please sign in to comment.