summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source/general/urls.rst
diff options
context:
space:
mode:
authorRepox <storm@err0r.dk>2011-11-22 11:13:48 +0100
committerRepox <storm@err0r.dk>2011-11-22 11:13:48 +0100
commited477270cca24e91941d947c00370ee8712e5fac (patch)
treefd1a41c5d9241f0392e53ea73bc2400b57828220 /user_guide_src/source/general/urls.rst
parente9307ce66afa48398f4685d4bd5bb2c93a8d8238 (diff)
Altered the suggested mod_rewrite rules for removing index.php from URL to better fit the needs between CI routing and asset files. This suggestion addresses issue #684
Diffstat (limited to 'user_guide_src/source/general/urls.rst')
-rw-r--r--user_guide_src/source/general/urls.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/user_guide_src/source/general/urls.rst b/user_guide_src/source/general/urls.rst
index 211537675..6618aeece 100644
--- a/user_guide_src/source/general/urls.rst
+++ b/user_guide_src/source/general/urls.rst
@@ -45,12 +45,13 @@ method in which everything is redirected except the specified items:
::
- RewriteEngine on
- RewriteCond $1 !^(index\.php|images|robots\.txt)
+ RewriteEngine On
+ RewriteCond %{REQUEST_FILENAME} !-f
+ RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
-In the above example, any HTTP request other than those for index.php,
-images, and robots.txt is treated as a request for your index.php file.
+In the above example, any HTTP request other than those for index.php, existing
+directories and existing files is treated as a request for your index.php file.
Adding a URL Suffix
===================