<!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">
Debian linux, Apache 2.<br>
<br>
Rajaram Shyamala wrote:
<blockquote cite="mid:002401c7f937$f62adc30$ca7ffea9@shyamala"
type="cite">
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
<meta content="MSHTML 6.00.6000.16525" name="GENERATOR">
<style></style>
<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="border-left: 2px solid rgb(0, 0, 0); padding-right: 0px; padding-left: 5px; margin-left: 5px; margin-right: 0px;">
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: ;">-----
Original Message ----- </div>
<div
style="background: rgb(228, 228, 228) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: ;"><b>From:</b>
<a moz-do-not-send="true" title="sander@sander-martijn.com"
href="mailto:sander@sander-martijn.com">sander-martijn</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: ;"><b>To:</b>
<a moz-do-not-send="true" title="support@drupal.org"
href="mailto:support@drupal.org">support@drupal.org</a> </div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: ;"><b>Sent:</b>
Monday, September 17, 2007 5:45 PM</div>
<div
style="font-family: arial; font-style: normal; font-variant: normal; font-weight: normal; font-size: 10pt; line-height: normal; font-size-adjust: none; font-stretch: ;"><b>Subject:</b>
Re: [support] http > 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.
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 moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://drupal.org/node/16084">http://drupal.org/node/16084</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://drupal.org/node/38960">http://drupal.org/node/38960</a>
<a moz-do-not-send="true" 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.
<IfModule mod_rewrite.c>
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 moz-do-not-send="true"
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 moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:sander@sander-martijn.com"><sander@sander-martijn.com></a>
To: <a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="mailto:support@drupal.org"><support@drupal.org></a>
Sent: Monday, September 17, 2007 3:44 AM
Subject: [support] http > 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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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" noshade="noshade" size="1" width="100%">
<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
moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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" noshade="noshade" size="1" width="100%"> </div>
<p> </p>
<hr> -- <br>
[ Drupal support list | <a class="moz-txt-link-freetext" href="http://lists.drupal.org/">http://lists.drupal.org/</a> ]</blockquote>
</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>