From: Eric Covener
Date: Wed, 20 Oct 2010 21:00:49 +0000 (+0000)
Subject: Update a per-dir example that's meant to show looping and the L flag.
X-Git-Tag: 2.3.9~245
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=204de4f15e1eaec3b8cc10f099a6848aa96a49de;p=thirdparty%2Fapache%2Fhttpd.git
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
---
diff --git a/docs/manual/rewrite/flags.xml b/docs/manual/rewrite/flags.xml
index d9bb1b3a234..3b3eb9e8e03 100644
--- a/docs/manual/rewrite/flags.xml
+++ b/docs/manual/rewrite/flags.xml
@@ -351,8 +351,9 @@ is already for index.php
, the RewriteRule will be skipped.
-RewriteCond %{REQUEST_URI} !=index.php
-RewriteRule ^(.*) index.php?req=$1 [L]
+RewriteBase /
+RewriteCond %{REQUEST_URI} !=/index.php
+RewriteRule ^(.*) /index.php?req=$1 [L,PT]