summaryrefslogtreecommitdiff
path: root/docs/manual/rewrite
diff options
context:
space:
mode:
authorEric Covener <covener@apache.org>2010-10-20 21:00:49 +0000
committerEric Covener <covener@apache.org>2010-10-20 21:00:49 +0000
commit204de4f15e1eaec3b8cc10f099a6848aa96a49de (patch)
tree57762fc983d33233ded85146160bd54a7fd86a4b /docs/manual/rewrite
parent49d8202d760dc17ba0d5d721eebde1fb79375f11 (diff)
downloadhttpd-204de4f15e1eaec3b8cc10f099a6848aa96a49de.tar.gz
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.xml5
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>