summaryrefslogtreecommitdiffstats
path: root/user_guide_src/source
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-11-27 21:37:56 +0100
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-11-27 21:37:56 +0100
commit6d0356b08fe6b6d1d24c9ab22183397836b9e898 (patch)
tree8891ec255e36ebb52b69ac09223fdc9f6fa14ff4 /user_guide_src/source
parentce9e5968c04d4c07faa7e90a422bba6f2623158a (diff)
parentab3efbb7a1bf3a70fc7c1aef4cf1007e490d7b2d (diff)
Merge pull request #690 from Repox/develop
Proposal for an updated mod_rewrite suggestion. The existing mod_rewrite example in the documentation led to confusion with new users about how to include CSS, JS and image files.
Diffstat (limited to 'user_guide_src/source')
-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..3126fcf36 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 existing
+directories and existing files is treated as a request for your index.php file.
Adding a URL Suffix
===================