httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r685538 - /httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml
Date Wed, 13 Aug 2008 13:26:03 GMT
Author: covener
Date: Wed Aug 13 06:26:02 2008
New Revision: 685538

URL: http://svn.apache.org/viewvc?rev=685538&view=rev
Log:
use %{DOCUMENT_ROOT} variable in the "try several subdirectories" example

Modified:
    httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml

Modified: httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml?rev=685538&r1=685537&r2=685538&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml (original)
+++ httpd/httpd/trunk/docs/manual/rewrite/rewrite_guide.xml Wed Aug 13 06:26:02 2008
@@ -298,13 +298,13 @@
 
 #   first try to find it in dir1/...
 #   ...and if found stop and be happy:
-RewriteCond         /your/docroot/<strong>dir1</strong>/%{REQUEST_FILENAME} 
-f
-RewriteRule  ^(.+)  /your/docroot/<strong>dir1</strong>/$1  [L]
+RewriteCond         %{DOCUMENT_ROOT}/<strong>dir1</strong>/%{REQUEST_FILENAME}
 -f
+RewriteRule  ^(.+)  %{DOCUMENT_ROOT}/<strong>dir1</strong>/$1  [L]
 
 #   second try to find it in dir2/...
 #   ...and if found stop and be happy:
-RewriteCond         /your/docroot/<strong>dir2</strong>/%{REQUEST_FILENAME} 
-f
-RewriteRule  ^(.+)  /your/docroot/<strong>dir2</strong>/$1  [L]
+RewriteCond         %{DOCUMENT_ROOT}/<strong>dir2</strong>/%{REQUEST_FILENAME}
 -f
+RewriteRule  ^(.+)  %{DOCUMENT_ROOT}/<strong>dir2</strong>/$1  [L]
 
 #   else go on for other Alias or ScriptAlias directives,
 #   etc.



Mime
View raw message