From 9ec4c866bd4658a05e113f205add1a35cb26be4c Mon Sep 17 00:00:00 2001 From: syntaqx Date: Mon, 28 May 2012 18:39:26 -0600 Subject: [PATCH] added htaccess documentation and symlinks Signed-off-by: syntaqx --- public/.htaccess | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/public/.htaccess b/public/.htaccess index e84ee2be..6e89138e 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -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. + - RewriteEngine on + Options +FollowSymLinks + RewriteEngine On + - 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] + + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule ^(.*)$ index.php/$1 [L] \ No newline at end of file