]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Clarify that this technique works in per-directory scope.
authorRich Bowen <rbowen@apache.org>
Tue, 3 Nov 2009 01:01:11 +0000 (01:01 +0000)
committerRich Bowen <rbowen@apache.org>
Tue, 3 Nov 2009 01:01:11 +0000 (01:01 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832237 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/remapping.html.en
docs/manual/rewrite/remapping.xml

index 91c28044544a1b2840126fb1cc42cc60c73a67f7..fcaf1fd38bd642a85b804d32919133e7693b6565 100644 (file)
@@ -196,6 +196,11 @@ RewriteRule ^(.*).html$ $1.php
     directives are evaluated. This allows us to test for the existence
     of the the original (<code>document.html</code>) and target
     (<code>document.php</code>) files using the same base filename.</p>
+    <p>This ruleset is designed to use in a per-directory context (In a
+    &lt;Directory&gt; block or in a .htaccess file), so that the
+    <code>-f</code> checks are looking at the correct directory path.
+    You may need to set a <code class="directive"><a href="../mod/mod_rewite.html#rewritebase">RewriteBase</a></code> directive to specify the
+    directory base that you're working in.</p>
     </dd>
   </dl>
 
index 6b5e006cb0edb9754a89e0dd9fbc36e68058e952..dcf48aaa3cebca77676a17bb251e5b6670e8d6ed 100644 (file)
@@ -195,6 +195,12 @@ RewriteRule ^(.*).html$ $1.php
     directives are evaluated. This allows us to test for the existence
     of the the original (<code>document.html</code>) and target
     (<code>document.php</code>) files using the same base filename.</p>
+    <p>This ruleset is designed to use in a per-directory context (In a
+    &lt;Directory&gt; block or in a .htaccess file), so that the
+    <code>-f</code> checks are looking at the correct directory path.
+    You may need to set a <directive
+    module="mod_rewite">RewriteBase</directive> directive to specify the
+    directory base that you're working in.</p>
     </dd>
   </dl>