From 75846d904c8718445a7a5819e630a8db9d3f68d0 Mon Sep 17 00:00:00 2001 From: Joshua Slive Date: Wed, 1 Aug 2007 18:39:04 +0000 Subject: [PATCH] R flag to mod_rewrite can set any status code PR: 25917 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561902 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_rewrite.html.en | 11 ++++++++--- docs/manual/mod/mod_rewrite.xml | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docs/manual/mod/mod_rewrite.html.en b/docs/manual/mod/mod_rewrite.html.en index 030fcce8a8..a11961d6a1 100644 --- a/docs/manual/mod/mod_rewrite.html.en +++ b/docs/manual/mod/mod_rewrite.html.en @@ -1452,12 +1452,12 @@ cannot use $N in the substitution string!
  • 'redirect|R [=code]' (force redirect)
    - Prefix Substitution with +

    Prefix Substitution with http://thishost[:thisport]/ (which makes the new URL a URI) to force a external redirection. If no code is given, a HTTP response of 302 (MOVED TEMPORARILY) will be returned. If you want to use other response - codes in the range 300-400, simply specify the appropriate number + codes, simply specify the appropriate number or use one of the following symbolic names: temp (default), permanent, seeother. Use this for rules to @@ -1472,7 +1472,12 @@ cannot use $N in the substitution string! http://thishost[:thisport]/ to the URL, and rewriting will continue. Usually, you will want to stop rewriting at this point, and redirect immediately. To stop rewriting, you should add - the 'L' flag. + the 'L' flag.

    +

    While this is typically used for redirects, any valid status + code can be given here. If the status code is outside the redirect + range (300-399), then the Substitution string is dropped + and rewriting is stopped as if the L flag was + used.

  • 'skip|S=num' diff --git a/docs/manual/mod/mod_rewrite.xml b/docs/manual/mod/mod_rewrite.xml index 7f880bfc3a..eca555dd33 100644 --- a/docs/manual/mod/mod_rewrite.xml +++ b/docs/manual/mod/mod_rewrite.xml @@ -1472,12 +1472,12 @@ cannot use $N in the substitution string!
  • 'redirect|R [=code]' (force redirect)
    - Prefix Substitution with +

    Prefix Substitution with http://thishost[:thisport]/ (which makes the new URL a URI) to force a external redirection. If no code is given, a HTTP response of 302 (MOVED TEMPORARILY) will be returned. If you want to use other response - codes in the range 300-400, simply specify the appropriate number + codes, simply specify the appropriate number or use one of the following symbolic names: temp (default), permanent, seeother. Use this for rules to @@ -1492,7 +1492,12 @@ cannot use $N in the substitution string! http://thishost[:thisport]/ to the URL, and rewriting will continue. Usually, you will want to stop rewriting at this point, and redirect immediately. To stop rewriting, you should add - the 'L' flag. + the 'L' flag.

    +

    While this is typically used for redirects, any valid status + code can be given here. If the status code is outside the redirect + range (300-399), then the Substitution string is dropped + and rewriting is stopped as if the L flag was + used.

  • 'skip|S=num' -- 2.40.0