<!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">
I thought about that - I have the php skills but am not sure in this
short time that I have the drupal skills to build the module.&nbsp;
Furthermore I'm feeling like if i can't get an apache directive or a
module to work, I think my module would likely have the same problem.&nbsp;
There has to be a conflict somewhere whether it's drupal, another
module or the host's server config.<br>
<br>
.s<br>
<br>
Metzler, David wrote:
<blockquote
 cite="mid:25C3492D5925964585F542C770231C120F0F30@oak.evergreen.edu"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
pre
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
  </style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Given that
you&#8217;re running out of
time, do you have the skills to mock up a custom module to do the job?&nbsp;
If
I was having problems with secure pages I might consider doing this
rather than
trying to get the Mod rewrite rules to work. <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Simple
module that implements hook_init
and does the tests you want with a drupal_goto call at the end?&nbsp; <o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Just
thinking out of the box&#8230;.<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;">Dave<o:p></o:p></span></font></p>
  <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial; color: navy;"><o:p>&nbsp;</o:p></span></font></p>
  <div>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt; color: windowtext;">
  <hr tabindex="-1" align="center" size="2" width="100%"></span></font></div>
  <p class="MsoNormal"><b><font color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext; font-weight: bold;">From:</span></font></b><font
 color="black" face="Tahoma" size="2"><span
 style="font-size: 10pt; font-family: Tahoma; color: windowtext;">
<a class="moz-txt-link-abbreviated" href="mailto:support-bounces@drupal.org">support-bounces@drupal.org</a>
[<a class="moz-txt-link-freetext" href="mailto:support-bounces@drupal.org">mailto:support-bounces@drupal.org</a>] <b><span style="font-weight: bold;">On
Behalf
Of </span></b>sander-martijn<br>
  <b><span style="font-weight: bold;">Sent:</span></b> Monday,
September 24, 2007
6:25 AM<br>
  <b><span style="font-weight: bold;">To:</span></b> <a class="moz-txt-link-abbreviated" href="mailto:support@drupal.org">support@drupal.org</a><br>
  <b><span style="font-weight: bold;">Subject:</span></b> Re: [support]
http &gt;
https redirect</span></font><font color="black"><span
 style="color: windowtext;"><o:p></o:p></span></font></p>
  </div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">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: <o:p></o:p></span></font></p>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">These two might also be helpful:<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="http://drupal.org/project/securepages">http://drupal.org/project/securepages</a> and <a
 moz-do-not-send="true" href="http://drupal.org/node/37932">http://drupal.org/node/37932</a><o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Cheers,<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Bill<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">sander-martijn wrote:<o:p></o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></pre>
  <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Thanks - that is the easiest way, but only works if you want your <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">entire site in https (https vastly slows down your site so I would <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">almost never want that).&nbsp; I need only one page to be https.&nbsp; <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Redirecting TO https is no problem:<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">RewriteCond %{SERVER_PORT} !^443$<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">RewriteRule ^(contact/requestBook)$ <a
 moz-do-not-send="true" href="https://s24863.gridserver.com/$1">https://s24863.gridserver.com/$1</a> [R=301,L]<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Redirecting back FROM https when you go to any of the other sites is <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">what doesn't work - i either get an endless loop (resulting in apache <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">failing) or it stays in https all the time:<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"># Redirect non-secure pages to HTTP if requested by HTTPS<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; RewriteCond %{SERVER_PORT} ^443$<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; RewriteCond %{REQUEST_URI} !^contact/requestBook$<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; RewriteRule ^(.*)$ <a moz-do-not-send="true"
 href="http://s24863.gridserver.com/$1">http://s24863.gridserver.com/$1</a> [R=301,L]<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">It has something to do with the way drupal rewrites urls - going to <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">https the url is one thing but by the time it gets to the next <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">condition (on the following line) to rewrite back to http if necessary <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">it thinks it's something else.&nbsp; so while it matches <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">contact/requestBook as the request URI it won't match NOT <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">contact/requestBook for the return url.<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">I still haven't gotten this working and the securepages maintainer <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">says he can't reproduce the problem with the module.&nbsp; And the site <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">goes live very soon.&nbsp; I've seen many issues posted both on the <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">drupal.org forums on problems with the apache solution above as well <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">as on the module page for the maintainer - so I believe it has <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">something to do with clean urls or someething like that and that there <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">IS a solution - I just can't figure out what it is.<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Thanks<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">.sander<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Chris Johnson wrote:<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></pre>
    <blockquote style="margin-top: 5pt; margin-bottom: 5pt;" type="cite">
      <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">Your situation may be vastly different from ours, so this may be of no<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">help at all.&nbsp; But here is how we redirect HTTP to HTTPS for our sites<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">using Apache 2:<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&lt;VirtualHost *:80&gt;<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; ServerName&nbsp; <a moz-do-not-send="true"
 href="http://www.example.com">www.example.com</a><o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; Redirect&nbsp;&nbsp;&nbsp; /&nbsp;&nbsp; <a moz-do-not-send="true"
 href="https://www.example.com/">https://www.example.com/</a><o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&lt;/VirtualHost&gt;<o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></pre>
      <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<o:p></o:p></span></font></pre>
    </blockquote>
    <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">-- <o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">------------------------------------------------------------------------<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">sander-martijn <a moz-do-not-send="true"
 href="mailto:sander@sander-martijn.com">&lt;mailto:sander@sander-martijn.com&gt;</a><o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">interface developer | architect<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="mailto:sander@sander-martijn.com">sander@sander-martijn.com</a> <a
 moz-do-not-send="true" href="mailto:sander@sander-martijn.com">&lt;mailto:sander@sander-martijn.com&gt;</a><o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><a moz-do-not-send="true"
 href="http://www.sander-martijn.com">www.sander-martijn.com</a> <a
 moz-do-not-send="true" href="http://www.sander-martijn.com">&lt;http://www.sander-martijn.com&gt;</a><o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">------------------------------------------------------------------------<o:p></o:p></span></font></pre>
    <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp;&nbsp;&nbsp; <o:p></o:p></span></font></pre>
  </blockquote>
  <pre wrap=""><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
  <pre><font color="black" face="Courier New" size="2"><span
 style="font-size: 10pt;">&nbsp; <o:p></o:p></span></font></pre>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
  <div>
  <p class="MsoNormal"><font color="black" face="Times New Roman"
 size="3"><span style="font-size: 12pt;">-- <o:p></o:p></span></font></p>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt;">
  <hr align="center" color="#aca899" noshade="noshade" size="1"
 width="100%"></span></font></div>
  <p style="text-align: center; text-transform: lowercase;"
 align="center"><font color="#333333" face="Verdana" size="1"><span
 style="font-size: 7.5pt; font-family: Verdana; color: rgb(51, 51, 51);"><a
 moz-do-not-send="true" href="mailto:sander@sander-martijn.com"><span
 style="text-decoration: none;">sander-martijn</span></a><br>
interface developer | architect<br>
  <a moz-do-not-send="true" href="mailto:sander@sander-martijn.com"><span
 style="text-decoration: none;">sander@sander-martijn.com</span></a><br>
  <a moz-do-not-send="true" href="http://www.sander-martijn.com"><span
 style="text-decoration: none;">www.sander-martijn.com</span></a>
  <o:p></o:p></span></font></p>
  <div class="MsoNormal" style="text-align: center;" align="center"><font
 color="black" face="Times New Roman" size="3"><span
 style="font-size: 12pt;">
  <hr align="center" color="#aca899" noshade="noshade" size="1"
 width="100%"></span></font></div>
  </div>
  </div>
</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>