]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Remove mention of 2.4-specific directives.
authorRich Bowen <rbowen@apache.org>
Thu, 24 Mar 2011 10:11:02 +0000 (10:11 +0000)
committerRich Bowen <rbowen@apache.org>
Thu, 24 Mar 2011 10:11:02 +0000 (10:11 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1084888 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/rewrite/remapping.html.en
docs/manual/rewrite/remapping.xml

index b81eee73c4bf729c9f4c6763c3059e9ac195bdd7..7fe26b417e19dfc8b12943cfe95d0a7bb1582359 100644 (file)
@@ -294,29 +294,6 @@ hostname(s).</p>
 &lt;/VirtualHost&gt;
 </code></p></div>
 
-<p>You can alternatively accomplish this using the 
-<code class="directive"><a href="../mod/core.html#if">&lt;If&gt;</a></code>
-directive:</p>
-
-<div class="example"><p><code>
-&lt;If "%{HTTP_HOST} != 'www.example.com'"&gt;<br />
-<span class="indent">
-Redirect / http://www.example.com/
-</span>
-&lt;/If&gt;
-</code></p></div>
-
-<p>Or, for example, to redirect a portion of your site to HTTPS, you
-might do the following:</p>
-
-<div class="example"><p><code>
-&lt;If "%{SERVER_PROTOCOL} != 'HTTPS'"&gt;<br />
-<span class="indent">
-Redirect /admin/ https://www.example.com/admin/
-</span>
-&lt;/If&gt;
-</code></p></div>
-
 <p>If, for whatever reason, you still want to use <code>mod_rewrite</code>
 - if, for example, you need this to work with a larger set of RewriteRules - 
 you might use one of the recipes below.</p>
index b974a6bcaa6c632e2b374d6c768d4d2808423cac..e52f906057c53c92df22fbf14a503e857c810074 100644 (file)
@@ -296,29 +296,6 @@ hostname(s).</p>
 &lt;/VirtualHost&gt;
 </example>
 
-<p>You can alternatively accomplish this using the 
-<directive module="core" type="section">If</directive>
-directive:</p>
-
-<example>
-&lt;If "%{HTTP_HOST} != 'www.example.com'"&gt;<br />
-<indent>
-Redirect / http://www.example.com/
-</indent>
-&lt;/If&gt;
-</example>
-
-<p>Or, for example, to redirect a portion of your site to HTTPS, you
-might do the following:</p>
-
-<example>
-&lt;If "%{SERVER_PROTOCOL} != 'HTTPS'"&gt;<br />
-<indent>
-Redirect /admin/ https://www.example.com/admin/
-</indent>
-&lt;/If&gt;
-</example>
-
 <p>If, for whatever reason, you still want to use <code>mod_rewrite</code>
 - if, for example, you need this to work with a larger set of RewriteRules - 
 you might use one of the recipes below.</p>