From: Rich Bowen Date: Tue, 3 Nov 2009 01:01:11 +0000 (+0000) Subject: Clarify that this technique works in per-directory scope. X-Git-Tag: 2.3.3~74 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c1cd405d9fc273d46dff832bcae3cea387f3f29b;p=thirdparty%2Fapache%2Fhttpd.git Clarify that this technique works in per-directory scope. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832237 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/remapping.html.en b/docs/manual/rewrite/remapping.html.en index 91c28044544..fcaf1fd38bd 100644 --- a/docs/manual/rewrite/remapping.html.en +++ b/docs/manual/rewrite/remapping.html.en @@ -196,6 +196,11 @@ RewriteRule ^(.*).html$ $1.php directives are evaluated. This allows us to test for the existence of the the original (document.html) and target (document.php) files using the same base filename.

+

This ruleset is designed to use in a per-directory context (In a + <Directory> block or in a .htaccess file), so that the + -f checks are looking at the correct directory path. + You may need to set a RewriteBase directive to specify the + directory base that you're working in.

diff --git a/docs/manual/rewrite/remapping.xml b/docs/manual/rewrite/remapping.xml index 6b5e006cb0e..dcf48aaa3ce 100644 --- a/docs/manual/rewrite/remapping.xml +++ b/docs/manual/rewrite/remapping.xml @@ -195,6 +195,12 @@ RewriteRule ^(.*).html$ $1.php directives are evaluated. This allows us to test for the existence of the the original (document.html) and target (document.php) files using the same base filename.

+

This ruleset is designed to use in a per-directory context (In a + <Directory> block or in a .htaccess file), so that the + -f checks are looking at the correct directory path. + You may need to set a RewriteBase directive to specify the + directory base that you're working in.