diff options
author | Eric Covener <covener@apache.org> | 2010-10-20 23:00:49 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2010-10-20 23:00:49 +0200 |
commit | 204de4f15e1eaec3b8cc10f099a6848aa96a49de (patch) | |
tree | 57762fc983d33233ded85146160bd54a7fd86a4b /docs/manual/rewrite | |
parent | Avoid unnecessariy initialisation before we test mod_cgid's handler name. (diff) | |
download | apache2-204de4f15e1eaec3b8cc10f099a6848aa96a49de.tar.xz apache2-204de4f15e1eaec3b8cc10f099a6848aa96a49de.zip |
Update a per-dir example that's meant to show looping and the L flag.
* add a RewriteBase
* REQUEST_URI doesn't have the RewriteBase stripped from it, so fix the test comparison.
* rewrite to absolute URI and use PT flag so the rule is somewhat applicable to per-vh context
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1025748 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/rewrite')
-rw-r--r-- | docs/manual/rewrite/flags.xml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml index d9bb1b3a23..3b3eb9e8e0 100644 --- a/docs/manual/rewrite/flags.xml +++ b/docs/manual/rewrite/flags.xml @@ -351,8 +351,9 @@ is already for <code>index.php</code>, the <directive module="mod_rewrite">RewriteRule</directive> will be skipped.</p> <example> -RewriteCond %{REQUEST_URI} !=index.php<br /> -RewriteRule ^(.*) index.php?req=$1 [L] +RewriteBase /<br /> +RewriteCond %{REQUEST_URI} !=/index.php<br /> +RewriteRule ^(.*) /index.php?req=$1 [L,PT] </example> </section> |