<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Securepages doesn't work properly.&nbsp; It's actually exactly the same
problem I see with my apache directives - when redirecting back from
https it results in an endless loop of redirects, resulting in apache
reporting "this page is redirecting in a way that will never resolve" -
or maybe it's firefox that gives up I can't remember.<br>
<br>
And I've seen the other post, but I definitely am not going down the
multi-site path for one page.&nbsp; That's like killing a cockroach with a
shotgun.<br>
<br>
Bill Fitzgerald wrote:
<blockquote cite="mid:46F53A51.6060309@funnymonkey.com" type="cite">
  <pre wrap="">These two might also be helpful:

<a class="moz-txt-link-freetext" href="http://drupal.org/project/securepages">http://drupal.org/project/securepages</a> and <a class="moz-txt-link-freetext" href="http://drupal.org/node/37932">http://drupal.org/node/37932</a>

Cheers,

Bill

sander-martijn wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">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).  I need only one page to be https.  
Redirecting TO https is no problem:
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]
  
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:
# 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]
  
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.  so while it matches 
contact/requestBook as the request URI it won't match NOT 
contact/requestBook for the return url.

I still haven't gotten this working and the securepages maintainer 
says he can't reproduce the problem with the module.  And the site 
goes live very soon.  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.

Thanks
.sander


Chris Johnson wrote:
    </pre>
    <blockquote 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>
    <pre wrap="">-- 
------------------------------------------------------------------------

sander-martijn <a class="moz-txt-link-rfc2396E" href="mailto:sander@sander-martijn.com">&lt;mailto:sander@sander-martijn.com&gt;</a>
interface developer | architect
<a class="moz-txt-link-abbreviated" href="mailto:sander@sander-martijn.com">sander@sander-martijn.com</a> <a class="moz-txt-link-rfc2396E" href="mailto:sander@sander-martijn.com">&lt;mailto:sander@sander-martijn.com&gt;</a>
<a class="moz-txt-link-abbreviated" href="http://www.sander-martijn.com">www.sander-martijn.com</a> <a class="moz-txt-link-rfc2396E" href="http://www.sander-martijn.com">&lt;http://www.sander-martijn.com&gt;</a>

------------------------------------------------------------------------
    </pre>
  </blockquote>
  <pre wrap=""><!---->

  </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>