Commit 4a032d98 authored by Richard Bowen's avatar Richard Bowen
Browse files

Don't use characters in URLs that already have client-side meanings.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1032727 13f79535-47bb-0310-9956-ffa450edef68
parent 2abb0fdb
Loading
Loading
Loading
Loading
+3 −3
Changes for docs/manual/ssl/ssl_faq.html.en: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -236,12 +236,12 @@ relative hyperlinks?</a></li>
    manipulate relative hyperlinks, to achieve the same effect.</p>
    <div class="example"><p><code>
    RewriteEngine on<br />
    RewriteRule   ^/(.*):SSL$   https://%{SERVER_NAME}/$1 [R,L]<br />
    RewriteRule   ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1  [R,L]
    RewriteRule   ^/(.*)_SSL$   https://%{SERVER_NAME}/$1 [R,L]<br />
    RewriteRule   ^/(.*)_NOSSL$ http://%{SERVER_NAME}/$1  [R,L]
    </code></p></div>

    <p>This rewrite ruleset lets you use hyperlinks of the form
    <code>&lt;a href="document.html:SSL"&gt;</code>, to switch to HTTPS
    <code>&lt;a href="document.html_SSL"&gt;</code>, to switch to HTTPS
    in a relative link. (Replace SSL with NOSSL to switch to HTTP.)</p>

</div><div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
+3 −3
Changes for docs/manual/ssl/ssl_faq.xml: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -242,12 +242,12 @@ relative hyperlinks?</a></li>
    manipulate relative hyperlinks, to achieve the same effect.</p>
    <example>
    RewriteEngine on<br />
    RewriteRule   ^/(.*):SSL$   https://%{SERVER_NAME}/$1 [R,L]<br />
    RewriteRule   ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1  [R,L]
    RewriteRule   ^/(.*)_SSL$   https://%{SERVER_NAME}/$1 [R,L]<br />
    RewriteRule   ^/(.*)_NOSSL$ http://%{SERVER_NAME}/$1  [R,L]
    </example>

    <p>This rewrite ruleset lets you use hyperlinks of the form
    <code>&lt;a href="document.html:SSL"&gt;</code>, to switch to HTTPS
    <code>&lt;a href="document.html_SSL"&gt;</code>, to switch to HTTPS
    in a relative link. (Replace SSL with NOSSL to switch to HTTP.)</p>
</section>
</section>