From 204de4f15e1eaec3b8cc10f099a6848aa96a49de Mon Sep 17 00:00:00 2001 From: Eric Covener Date: Wed, 20 Oct 2010 21:00:49 +0000 Subject: 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 --- docs/manual/rewrite/flags.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'docs/manual/rewrite') 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 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]
-- cgit v1.2.1