Apache Server configuration support - redirecting a http server to a https server

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > January 2004 > redirecting a http server to a https server





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author redirecting a http server to a https server
Fred Emmott

2004-01-30, 9:33 am

I have this in ~/tldp/public_html/.htaccess:

RewriteEngine On
RewriteRule ^/(.*) https://tldp.server.lan/$1 [L,R]

The ssl vhost files are in ~/tldp/public_ssl/

I'm trying to automatically map http://tldp.server.lan/a/b/c to https:/
tldp.server.lan/a/b/c - any ideas why this isn't working?

Fred
Fred Emmott

2004-01-30, 10:33 am

Fred Emmott wrote:
quote:

> I have this in ~/tldp/public_html/.htaccess:
>
> RewriteEngine On
> RewriteRule ^/(.*) https://tldp.server.lan/$1 [L,R]
>
> The ssl vhost files are in ~/tldp/public_ssl/
>
> I'm trying to automatically map http://tldp.server.lan/a/b/c to https:/
> tldp.server.lan/a/b/c - any ideas why this isn't working?
>
> Fred



A bit more googling revealed this:

Redirect / https://tldp.server.lan/

Works fine, thanks anyway sorry for bothering you.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com