<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.6000.16525" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Are you working in Linux or windows?</FONT></DIV>
<DIV><FONT face=Arial size=2>Shyamala</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=sander@sander-martijn.com 
  href="mailto:sander@sander-martijn.com">sander-martijn</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=support@drupal.org 
  href="mailto:support@drupal.org">support@drupal.org</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, September 17, 2007 5:45 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: [support] http &gt; https 
  redirect</DIV>
  <DIV><BR></DIV>Thanks for that information but all it tells me is that I do 
  indeed understand how to do the redirect, it's just not working as 
  expected.&nbsp; The only thing I learned was "place this code above <BR>Drupal 
  's own URL rewrite, but below the command RewriteEngine on." but I already 
  tried both above and below and it's not working in either 
  place.<BR><BR><BR><BR><BR>Shyamala wrote: 
  <BLOCKQUOTE cite=mid:001001c7f8b5$f7dea0c0$e1b6a47a@netlinkindia.local 
  type="cite"><PRE wrap="">Refer:
<A class=moz-txt-link-freetext href="http://drupal.org/node/16084">http://drupal.org/node/16084</A>
<A class=moz-txt-link-freetext href="http://drupal.org/node/38960">http://drupal.org/node/38960</A>
<A class=moz-txt-link-freetext href="http://www.askapache.com/htaccess/apache-htaccess.html">http://www.askapache.com/htaccess/apache-htaccess.html</A>

"How to create 301 redirects in Drupal Apache mod_rewrite
Edit your .htaccess file in a text editor. [Note: Be sure to save the file 
in "UTF-8" format.]

In the file, you will find the commands:


# Various rewrite rules.
&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on

  # Modify the RewriteBase if you are using Drupal in a subdirectory and
  # the rewrite rules are not working properly.
  #RewriteBase /drupal

RewriteBase /
Immediately after that code -- and before the Drupal-provided "Rewrite 
old-style URLs" commands -- add your rewrite rules using the following 
format:


#custom redirects

RewriteRule ^old/URL/path$ <A class=moz-txt-link-freetext href="http://yourdomain.com/new/path">http://yourdomain.com/new/path</A> [R=301,L]

#end custom redirects
Note the convention: The old path is simply the path off the root. The new 
path is the full path, including the domain. The [R=301,L] code is the 301 
redirect instruction. (axbom notes: "The 301 tells browsers and spiders it 
is a permanent redirect, and the L ensures that no other rewrites are 
processed on the URL before it reaches Drupal; Hence place this code above 
Drupal 's own URL rewrite, but below the command RewriteEngine on.")  "



----- Original Message ----- 
From: "sander-martijn" <A class=moz-txt-link-rfc2396E href="mailto:sander@sander-martijn.com">&lt;sander@sander-martijn.com&gt;</A>
To: <A class=moz-txt-link-rfc2396E href="mailto:support@drupal.org">&lt;support@drupal.org&gt;</A>
Sent: Monday, September 17, 2007 3:44 AM
Subject: [support] http &gt; https redirect


  </PRE>
    <BLOCKQUOTE type="cite"><PRE wrap="">Anyone know what I need to do to get individual pages to redirect to
https?

These 2 lines work:
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]

These lines, which should be the exact opposite, redirect all pages to 
http:
# 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]

I've tried all options here including node/387, index.php?q=node/387,
including/excluding parens etc - none have worked.

Obviously as is the contact/requestBook page ends in an endless loop.

I tried the securepages module but it's broken.

.sander
-- 
[ Drupal support list | <A class=moz-txt-link-freetext href="http://lists.drupal.org/">http://lists.drupal.org/</A> ] 
    </PRE></BLOCKQUOTE><PRE wrap=""><!---->
  </PRE></BLOCKQUOTE><BR>
  <DIV class=moz-signature>-- <BR>
  <HR align=center width="100%" noShade SIZE=1>

  <P 
  style="FONT-WEIGHT: normal; FONT-SIZE: 10px; TEXT-TRANSFORM: lowercase; COLOR: rgb(51,51,51); FONT-STYLE: normal; FONT-FAMILY: verdana,arial,helvetica,sans-serif; TEXT-ALIGN: center"><A 
  style="COLOR: rgb(0,0,255); FONT-FAMILY: verdana,arial,helvetica,sans-serif; TEXT-DECORATION: none" 
  href="mailto:sander@sander-martijn.com">sander-martijn</A><BR>interface 
  developer | architect<BR><A 
  style="COLOR: rgb(0,0,255); FONT-FAMILY: verdana,arial,helvetica,sans-serif; TEXT-DECORATION: none" 
  href="mailto:sander@sander-martijn.com">sander@sander-martijn.com</A><BR><A 
  style="COLOR: rgb(0,0,255); FONT-FAMILY: verdana,arial,helvetica,sans-serif; TEXT-DECORATION: none" 
  href="http://www.sander-martijn.com">www.sander-martijn.com</A> </P>
  <HR align=center width="100%" noShade SIZE=1>
  </DIV>
  <P>
  <HR>

  <P></P>-- <BR>[ Drupal support list | http://lists.drupal.org/ 
]</BLOCKQUOTE></BODY></HTML>