Permalink
Browse files

Merge pull request #723 from syntaqx/htaccess

htaccess documentation and symlink usage
  • Loading branch information...
2 parents d6bcc41 + 9ec4c86 commit 67583790d4c4311a02b78078eaa755ea6ba29fa0 @taylorotwell taylorotwell committed May 30, 2012
Showing with 19 additions and 4 deletions.
  1. +19 −4 public/.htaccess
View
@@ -1,8 +1,23 @@
+# Apache configuration file
+# http://httpd.apache.org/docs/2.2/mod/quickreference.html
+
+# Note: ".htaccess" files are an overhead for each request. This logic should
+# be placed in your Apache config whenever possible.
+# http://httpd.apache.org/docs/2.2/howto/htaccess.html
+
+# Turning on the rewrite engine is necessary for the following rules and
+# features. "+FollowSymLinks" must be enabled for this to work symbolically.
+
<IfModule mod_rewrite.c>
- RewriteEngine on
+ Options +FollowSymLinks
+ RewriteEngine On
+</IfModule>
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
+# For all files not found in the file system, reroute the request to the
+# "index.php" front controller, keeping the query string intact
- RewriteRule ^(.*)$ index.php/$1 [L]
+<IfModule mod_rewrite.c>
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
+ RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

0 comments on commit 6758379

Please sign in to comment.