From: Rich Bowen Date: Wed, 27 May 2026 03:46:42 +0000 (+0000) Subject: Rebuild rewrite docs X-Git-Tag: 2.4.68-rc1-candidate~63 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6295c2de53286829831c1cdc1a69f17e0cc19d10;p=thirdparty%2Fapache%2Fhttpd.git Rebuild rewrite docs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1934665 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/rewrite/avoid.html.en b/docs/manual/rewrite/avoid.html.en index 5c4bc51311..ba953f6e29 100644 --- a/docs/manual/rewrite/avoid.html.en +++ b/docs/manual/rewrite/avoid.html.en @@ -26,7 +26,7 @@

Available Languages:  en  | - fr 

+ fr 

@@ -66,7 +66,7 @@ files to work with, you may need to resort to
  • Denying Hosts in a Reject List
  • Virtual Hosting
  • Load Balancing
  • -

    See also

    +

    See also

    top

    Simple Redirection

    @@ -102,37 +102,30 @@ and /one/three/four.html.

    Canonical Hostnames recipe.

    -

    To redirect http URLs to https, do the -following:

    - -
    <VirtualHost *:80>
    -    ServerName www.example.com
    -    Redirect "/" "https://www.example.com/"
    -</VirtualHost>
    -
    -<VirtualHost *:443>
    -    ServerName www.example.com
    -    # ... SSL configuration goes here
    -</VirtualHost>
    - - -

    The use of RewriteRule to perform this task may be -appropriate if there are other RewriteRule directives in -the same scope. This is because, when there are Redirect -and RewriteRule directives in the same scope, the -RewriteRule directives will run first, regardless of the -order of appearance in the configuration file.

    - -

    In the case of the http-to-https redirection, the use of -RewriteRule would be appropriate if you don't have access -to the main server configuration file, and are obliged to perform this -task in a .htaccess file instead.

    +

    To redirect http URLs to https, a +Redirect in a dedicated +HTTP virtual host is the cleanest approach. See the +Forcing HTTPS recipe for +the recommended configuration and the +mod_rewrite alternative for .htaccess +use.

    + +

    Processing order

    +

    If you do mix Redirect + and RewriteRule in the + same context, be aware that their execution order depends on where + they appear. In server/virtual-host context, + mod_rewrite runs first; in per-directory context + (.htaccess), mod_alias runs first. See + Module Processing Order for + details.

    +
    top

    URL Aliasing

    The Alias directive -provides mapping from a URI to a directory - usually a directory outside +provides mapping from a URL-path to a directory - usually a directory outside of your DocumentRoot. Although it is possible to perform this mapping with mod_rewrite, Alias is the preferred method, for @@ -543,7 +536,7 @@ featureful than anything you can cobble together using

    Available Languages:  en  | - fr 

    + fr