Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 3541 invoked from network); 24 Mar 2011 10:11:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 10:11:28 -0000 Received: (qmail 77771 invoked by uid 500); 24 Mar 2011 10:11:28 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 77717 invoked by uid 500); 24 Mar 2011 10:11:27 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 77710 invoked by uid 99); 24 Mar 2011 10:11:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 10:11:27 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 10:11:25 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 8B22223889FA; Thu, 24 Mar 2011 10:11:02 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1084888 - in /httpd/httpd/branches/2.2.x/docs/manual/rewrite: remapping.html.en remapping.xml Date: Thu, 24 Mar 2011 10:11:02 -0000 To: cvs@httpd.apache.org From: rbowen@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110324101102.8B22223889FA@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rbowen Date: Thu Mar 24 10:11:02 2011 New Revision: 1084888 URL: http://svn.apache.org/viewvc?rev=1084888&view=rev Log: Remove mention of 2.4-specific directives. Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en?rev=1084888&r1=1084887&r2=1084888&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en (original) +++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.html.en Thu Mar 24 10:11:02 2011 @@ -294,29 +294,6 @@ hostname(s).

</VirtualHost>

-

You can alternatively accomplish this using the -<If> -directive:

- -

-<If "%{HTTP_HOST} != 'www.example.com'">
- -Redirect / http://www.example.com/ - -</If> -

- -

Or, for example, to redirect a portion of your site to HTTPS, you -might do the following:

- -

-<If "%{SERVER_PROTOCOL} != 'HTTPS'">
- -Redirect /admin/ https://www.example.com/admin/ - -</If> -

-

If, for whatever reason, you still want to use mod_rewrite - if, for example, you need this to work with a larger set of RewriteRules - you might use one of the recipes below.

Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml?rev=1084888&r1=1084887&r2=1084888&view=diff ============================================================================== --- httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml (original) +++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml Thu Mar 24 10:11:02 2011 @@ -296,29 +296,6 @@ hostname(s).

</VirtualHost> -

You can alternatively accomplish this using the -If -directive:

- - -<If "%{HTTP_HOST} != 'www.example.com'">
- -Redirect / http://www.example.com/ - -</If> -
- -

Or, for example, to redirect a portion of your site to HTTPS, you -might do the following:

- - -<If "%{SERVER_PROTOCOL} != 'HTTPS'">
- -Redirect /admin/ https://www.example.com/admin/ - -</If> -
-

If, for whatever reason, you still want to use mod_rewrite - if, for example, you need this to work with a larger set of RewriteRules - you might use one of the recipes below.