From: Eric Covener Date: Wed, 13 Aug 2008 13:26:02 +0000 (+0000) Subject: use %{DOCUMENT_ROOT} variable in the "try several subdirectories" example X-Git-Tag: 2.3.0~366 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4486dfb66ebd8717549ccf2514fd4b47dcacd6b9;p=thirdparty%2Fapache%2Fhttpd.git use %{DOCUMENT_ROOT} variable in the "try several subdirectories" example git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@685538 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/rewrite_guide.xml b/docs/manual/rewrite/rewrite_guide.xml index e1a5d535830..2e2f0b9c1da 100644 --- a/docs/manual/rewrite/rewrite_guide.xml +++ b/docs/manual/rewrite/rewrite_guide.xml @@ -298,13 +298,13 @@ RewriteEngine on # first try to find it in dir1/... # ...and if found stop and be happy: -RewriteCond /your/docroot/dir1/%{REQUEST_FILENAME} -f -RewriteRule ^(.+) /your/docroot/dir1/$1 [L] +RewriteCond %{DOCUMENT_ROOT}/dir1/%{REQUEST_FILENAME} -f +RewriteRule ^(.+) %{DOCUMENT_ROOT}/dir1/$1 [L] # second try to find it in dir2/... # ...and if found stop and be happy: -RewriteCond /your/docroot/dir2/%{REQUEST_FILENAME} -f -RewriteRule ^(.+) /your/docroot/dir2/$1 [L] +RewriteCond %{DOCUMENT_ROOT}/dir2/%{REQUEST_FILENAME} -f +RewriteRule ^(.+) %{DOCUMENT_ROOT}/dir2/$1 [L] # else go on for other Alias or ScriptAlias directives, # etc.