How to redirect from http:// to https://

infotech - August 27, 2007 - 21:18

I am in the process of developing a website using Drupal.

After a login by Admin and/or the Client, I want them to go from http://www.psychotherapy-counselling.org.uk to https://www.psychotherapy-counselling.org.uk

If a visitor accesses the website, I am happy for them to use the http://www.xxx pages, but for the Client, I want them to use the more secure https://www.xxxx pages.

I have installed the login_destination module, but I am unclear as to how to use the settings.

For example, in the URL destination settings, do I use the Static URL or the PHP snippet? What would be the Static? If using a PHP snippet what would that entail (or how do I learn how to change the http:// to https:// for ALL nodes, when a Client or Admin logins in?

Under the Redirection condition settings, would I, for example, literally have to list ALL nodes and change them from http://www.xxx tohttps://www.xxx? (Under List of paths)? Or is there another way?

Thank you in advance for your help.

Kind regards,

Ros

take a look at .htaccess in root directory

stoeckler - August 27, 2007 - 22:59

Hi Ros,

if you're fine with everybody - anonymous users and authenticated ones alike - using your https://... site, take a look at the nicely documented/commented .htacess file in the root directory of your drupal installation - you might want to backup the file first, though.

There is a module called

Zahor - August 27, 2007 - 23:09

There is a module called securepages. That does exactly that. http://www.drupal.org/project/securepages

Thank you both for your

infotech - August 28, 2007 - 13:32

Thank you both for your helpful replies. I will take a look at secure pages module.

Many thanks!

Ros

 
 

Drupal is a registered trademark of Dries Buytaert.