<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Thanks - that is the easiest way, but only works if you want your
entire site in https (https vastly slows down your site so I would
almost never want that).&nbsp; I need only one page to be https.&nbsp;
Redirecting TO https is no problem:<br>
<pre wrap="">RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(contact/requestBook)$ <a class="moz-txt-link-freetext"
 href="https://s24863.gridserver.com/$1">https://s24863.gridserver.com/$1</a> [R=301,L]
</pre>
Redirecting back FROM https when you go to any of the other sites is
what doesn't work - i either get an endless loop (resulting in apache
failing) or it stays in https all the time:<br>
<pre wrap=""># Redirect non-secure pages to HTTP if requested by HTTPS
  RewriteCond %{SERVER_PORT} ^443$
  RewriteCond %{REQUEST_URI} !^contact/requestBook$
  RewriteRule ^(.*)$ <a class="moz-txt-link-freetext"
 href="http://s24863.gridserver.com/$1">http://s24863.gridserver.com/$1</a> [R=301,L]
</pre>
It has something to do with the way drupal rewrites urls - going to
https the url is one thing but by the time it gets to the next
condition (on the following line) to rewrite back to http if necessary
it thinks it's something else.&nbsp; so while it matches contact/requestBook
as the request URI it won't match NOT contact/requestBook for the
return url.<br>
<br>
I still haven't gotten this working and the securepages maintainer says
he can't reproduce the problem with the module.&nbsp; And the site goes live
very soon.&nbsp; I've seen many issues posted both on the drupal.org forums
on problems with the apache solution above as well as on the module
page for the maintainer - so I believe it has something to do with
clean urls or someething like that and that there IS a solution - I
just can't figure out what it is.<br>
<br>
Thanks<br>
.sander<br>
<br>
<br>
Chris Johnson wrote:
<blockquote
 cite="mid:9ea8d6030709220656o6fdf00fco8d59a6c7d115c27c@mail.gmail.com"
 type="cite">
  <pre wrap="">Your situation may be vastly different from ours, so this may be of no
help at all.  But here is how we redirect HTTP to HTTPS for our sites
using Apache 2:

&lt;VirtualHost *:80&gt;
    ServerName  <a class="moz-txt-link-abbreviated" href="http://www.example.com">www.example.com</a>
    Redirect    /   <a class="moz-txt-link-freetext" href="https://www.example.com/">https://www.example.com/</a>
&lt;/VirtualHost&gt;
  </pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<hr align="center" noshade="noshade" size="1" width="100%">
<p
 style="text-align: center; font-family: verdana,arial,helvetica,sans-serif; color: rgb(51, 51, 51); font-size: 10px; text-transform: lowercase; font-style: normal; font-weight: normal;"><a
 href="mailto:sander@sander-martijn.com"
 style="text-decoration: none; color: rgb(0, 0, 255); font-family: verdana,arial,helvetica,sans-serif;">sander-martijn</a><br>
interface developer | architect<br>
<a href="mailto:sander@sander-martijn.com"
 style="text-decoration: none; color: rgb(0, 0, 255); font-family: verdana,arial,helvetica,sans-serif;">sander@sander-martijn.com</a><br>
<a href="http://www.sander-martijn.com"
 style="text-decoration: none; color: rgb(0, 0, 255); font-family: verdana,arial,helvetica,sans-serif;">www.sander-martijn.com</a>
</p>
<hr align="center" noshade="noshade" size="1" width="100%"></div>
</body>
</html>