From: Rich Bowen
Date: Mon, 8 Nov 2010 21:23:55 +0000 (+0000)
Subject: Don't use characters in URLs that already have client-side meanings.
X-Git-Tag: 2.2.18~302
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43bc88de7d1488b640db0bdbc661c8889eda7624;p=thirdparty%2Fapache%2Fhttpd.git
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
---
diff --git a/docs/manual/ssl/ssl_faq.html.en b/docs/manual/ssl/ssl_faq.html.en
index a7b90f5b4b6..93a332cf96f 100644
--- a/docs/manual/ssl/ssl_faq.html.en
+++ b/docs/manual/ssl/ssl_faq.html.en
@@ -236,12 +236,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.)
diff --git a/docs/manual/ssl/ssl_faq.xml b/docs/manual/ssl/ssl_faq.xml
index ec1a44a4467..06834b834c6 100644
--- a/docs/manual/ssl/ssl_faq.xml
+++ b/docs/manual/ssl/ssl_faq.xml
@@ -242,12 +242,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.)