From a49296303c2a21e2bdaded18e3f8c946800431bf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Igor=20Gali=C4=87?= Date: Tue, 3 Apr 2012 10:14:28 +0000 Subject: [PATCH] rebuild git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1308803 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.html.en | 58 ++++++++++++++--------------- docs/manual/mod/mpm_common.xml.de | 2 +- docs/manual/mod/mpm_common.xml.ja | 2 +- docs/manual/mod/mpm_common.xml.tr | 2 +- docs/manual/programs/ab.xml.ko | 2 +- docs/manual/programs/ab.xml.tr | 2 +- docs/manual/rewrite/flags.html.en | 2 +- docs/manual/rewrite/flags.html.fr | 2 + docs/manual/rewrite/flags.xml.fr | 2 +- docs/manual/rewrite/flags.xml.meta | 2 +- 10 files changed, 39 insertions(+), 37 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 598bbf0f74..a98e69a023 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -112,40 +112,40 @@ URLs on the fly Status:Extension Module:mod_rewrite -

The RewriteBase directive specifies the - URL prefix to be used for per-directory (htaccess) - RewriteRule directives that substitute a relative - path.

-

This directive is required when you use a relative path - in a substitution in per-directory (htaccess) context unless either - of the following conditions are true: -

-

- -

In the example below, RewriteBase is necessary - to avoid rewriting to http://example.com/opt/myapp-1.2.3/welcome.html - since the resource was not relative to the document root. This - misconfiguration would normally cause the server to look for an "opt" - directory under the document root.

+

The RewriteBase directive explicitly + sets the base URL-path (not filesystem directory path!) for per-directory rewrites + that result in the substitution of a relative path. + When you use a RewriteRule + in a .htaccess file, mod_rewrite strips off + the local directory prefix before processing, then rewrites the rest of + the URL. When the rewrite is completed, mod_rewrite + automatically adds the local directory prefix (or the + RewriteBase when set) back on to the substitution + before handing it back to the core of the server as if it were the original + URL.

+ +

This directive is required for per-directory rewrites whose context + is a directory made available via the Alias + directive, when the substitution uses a relative path.

+ +

If your URL path does not exist verbatim on the filesystem, + or isn't directly under your DocumentRoot, + you must use RewriteBase in every + .htaccess file where you want to use RewriteRule directives.

+ +

The example below demonstrates how to map + http://example.com/myapp/index.html to + /home/www/example/newsite.html, in a .htaccess file. This + assumes that the content available at + http://example.com/ is on disk at /home/www/example/

-DocumentRoot /var/www/example.com
-Alias /myapp /opt/myapp-1.2.3
-<Directory /opt/myapp-1.2.3>
 RewriteEngine On
+# The URL-path used to get to this context, not the filesystem path
 RewriteBase /myapp/
-RewriteRule ^index\.html$  welcome.html 
-</Directory>
+RewriteRule ^index\.html$  newsite.html
 
+
top

RewriteCond Directive

diff --git a/docs/manual/mod/mpm_common.xml.de b/docs/manual/mod/mpm_common.xml.de index 2b34189a73..fd7703bb7c 100644 --- a/docs/manual/mod/mpm_common.xml.de +++ b/docs/manual/mod/mpm_common.xml.de @@ -1,7 +1,7 @@ - + + + + + + diff --git a/docs/manual/rewrite/flags.xml.meta b/docs/manual/rewrite/flags.xml.meta index 912229af03..e4f3ee6f49 100644 --- a/docs/manual/rewrite/flags.xml.meta +++ b/docs/manual/rewrite/flags.xml.meta @@ -8,6 +8,6 @@ en - fr + fr -- 2.40.0