From: Rich Bowen
Date: Mon, 8 Nov 2010 21:19:57 +0000 (+0000)
Subject: Fixes PR47236 - Using : or @ in a URL already means something else, and
X-Git-Tag: 2.3.9~73
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de95fb802951c4f5789bb331ac3a2b08503e2813;p=thirdparty%2Fapache%2Fhttpd.git
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
---
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.)