]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
use %{DOCUMENT_ROOT} variable in the "try several subdirectories" example
authorEric Covener <covener@apache.org>
Wed, 13 Aug 2008 13:26:02 +0000 (13:26 +0000)
committerEric Covener <covener@apache.org>
Wed, 13 Aug 2008 13:26:02 +0000 (13:26 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@685538 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/rewrite_guide.xml

index e1a5d5358307991870d43d40de9e108922395c96..2e2f0b9c1dadd9e4ec5339dd3219acdea1419d2b 100644 (file)
@@ -298,13 +298,13 @@ RewriteEngine on
 
 #   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.