<!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 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 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.
<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 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"><sander@sander-martijn.com></a>
To: <a 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 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" 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>