Will this fix it? :

@@ -177,11 +177,14 @@
 #   backward compatibility ruleset for
 #   rewriting document.html to document.php
 #   when and only when document.php exists
+<Directory /var/www/htdocs>
 RewriteEngine on
+RewriteBase /var/www/htdocs

 RewriteCond $1.php -f
 RewriteCond $1.html !-f
-RewriteRule ^(.*).html$ $1.php
+RewriteRule ^(.*).html$ $1.php
+</Directory>
 </pre></example>
     </dd>



On Nov 3, 2009, at 06:36 , Bob Ionescu wrote:

2009/11/3  <[email protected]>:
Author: rbowen
Date: Tue Nov  3 00:16:57 2009
New Revision: 832217

URL: http://svn.apache.org/viewvc?rev=832217&view=rev
Log:
Moves another rule out of rewrite_guide, and updates it for modern
versions of mod_rewrite

Modified:
  httpd/httpd/trunk/docs/manual/rewrite/index.html.en
  httpd/httpd/trunk/docs/manual/rewrite/index.xml
  httpd/httpd/trunk/docs/manual/rewrite/index.xml.tr
  httpd/httpd/trunk/docs/manual/rewrite/remapping.html.en
  httpd/httpd/trunk/docs/manual/rewrite/remapping.xml
  httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.html.en
  httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml
[...
]> +<div class="example"><pre>
+#   backward compatibility ruleset for
+#   rewriting document.html to document.php
+#   when and only when document.php exists
+RewriteEngine on
+
+RewriteCond $1.php -f
+RewriteCond $1.html !-f
+RewriteRule ^(.*).html$ $1.php

I think this will lead to problems since $1 should contain (in per-dir
context) only local/foo and not /full/physical/path/to/local/foo as
required by apr_stat().

Bob

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


--
Rich Bowen
[email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to