]> granicus.if.org Git - apache/commitdiff
Update a per-dir example that's meant to show looping and the L flag.
authorEric Covener <covener@apache.org>
Wed, 20 Oct 2010 21:00:49 +0000 (21:00 +0000)
committerEric Covener <covener@apache.org>
Wed, 20 Oct 2010 21:00:49 +0000 (21:00 +0000)
* 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

docs/manual/rewrite/flags.xml

index d9bb1b3a2349a269081848a4e1b88444fac85737..3b3eb9e8e03c3c702f24cce7b577107af425dd90 100644 (file)
@@ -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>