From 6cc3988d8c42b1c4d7081a9d713fdc964ab9d4c7 Mon Sep 17 00:00:00 2001 From: Joel Dare Date: Fri, 14 Feb 2014 10:25:55 -0700 Subject: [PATCH] Added documentation for a second apache rewrite option to the README.md file to address issue #57. --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 537f711..8168d40 100644 --- a/README.md +++ b/README.md @@ -191,6 +191,19 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php) RewriteRule ^(.*)$ /index.php/$1 [L] ``` + +Or, if you're putting index.php into a subdirectory the following host +configuration might be a better fit. + +```apacheconf +RewriteBase /INSERT/PATH/TO/BASE/DIRECTORY +RewriteEngine on +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond $1 !^(index\.php) +RewriteRule .* index.php/$1 [L] +``` + And for IIS you will need to add the following rule to your `web.config`: ```xml