From 7d4c8097c4cd712f76f11e974bfef4b2a43169ab Mon Sep 17 00:00:00 2001
From: Rich Bowen
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.)