From de95fb802951c4f5789bb331ac3a2b08503e2813 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Mon, 8 Nov 2010 21:19:57 +0000 Subject: [PATCH] Fixes PR47236 - Using : or @ in a URL already means something else, and so shouldn't be inserted into a URL for other special meaning. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1032722 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/ssl/ssl_faq.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/manual/ssl/ssl_faq.xml b/docs/manual/ssl/ssl_faq.xml index 8a62c49d9b0..a94da977fb0 100644 --- a/docs/manual/ssl/ssl_faq.xml +++ b/docs/manual/ssl/ssl_faq.xml @@ -174,12 +174,12 @@ relative hyperlinks? manipulate relative hyperlinks, to achieve the same effect.

RewriteEngine on
- RewriteRule ^/(.*):SSL$ https://%{SERVER_NAME}/$1 [R,L]
- RewriteRule ^/(.*):NOSSL$ http://%{SERVER_NAME}/$1 [R,L] + RewriteRule ^/(.*)_SSL$ https://%{SERVER_NAME}/$1 [R,L]
+ RewriteRule ^/(.*)_NOSSL$ http://%{SERVER_NAME}/$1 [R,L]

This rewrite ruleset lets you use hyperlinks of the form - <a href="document.html:SSL">, to switch to HTTPS + <a href="document.html_SSL">, to switch to HTTPS in a relative link. (Replace SSL with NOSSL to switch to HTTP.)

-- 2.47.2