Dear Alvan,

Mod rewrite is the way to go. But it is hard to correctly write the regular expressions necessary, varies as per version of Apache and worse with TLS SSL.

You can find a bunch of random notes on this subject at:

http://docbox.flint.com:8081/web_site_rewrite_rules


On Mon, 22 Dec 2008, Alvin ONeal wrote:

Date: Mon, 22 Dec 2008 19:58:27 -0700
From: Alvin ONeal <[email protected]>
Reply-To: Vermont Area Group of Unix Enthusiasts <[email protected]>
To: [email protected]
Subject: Re: Fun with Apache & subdomains (meaning I need help)

So it seems that the best solution to my second problem
(redirecting https > http, http > https) would be to use mod
rewrite. I've tried this bit of action below but it isn't doing
anything

<Virtual......
       .......
       DocumentRoot /var/www/
       RewriteEngine On
           RewriteCond   %{SERVER_PORT}  !^443$
           RewriteRule ^svn\.twdp\.hobby-site\.org(.*)$
https://svn.twdp.hobby-site.org$1 [L,R]

Any thoughts

AJ ONeal


Kindest Regards,



Paul Flint
(802) 479-2360


/************************************
Based upon email reliability concerns,
please send an acknowledgment in response to this note.

Paul Flint
Barre Open Systems Institute
17 Averill Street
Barre, VT
05641

http://www.bosivt.org
http://www.flint.com/home
skype: flintinfotech
Work: (202) 537-0480
 Fax: (703) 852-7089

Consilium
gratuitum        .~.
valet            /V\
quanti          /( )\
numerantur      ^^-^^

Reply via email to