From owner-freebsd-isp Mon May 15 18:58:13 2000 Delivered-To: freebsd-isp@freebsd.org Received: from misery.sdf.com (misery.sdf.com [204.244.213.49]) by hub.freebsd.org (Postfix) with ESMTP id E603737B534 for ; Mon, 15 May 2000 18:58:09 -0700 (PDT) (envelope-from tom@sdf.com) Received: from tom (helo=localhost) by misery.sdf.com with local-esmtp (Exim 2.12 #1) id 12rWLX-0004oc-00; Mon, 15 May 2000 18:40:31 -0700 Date: Mon, 15 May 2000 18:40:30 -0700 (PDT) From: Tom To: Steve Price Cc: freebsd-isp@freebsd.org Subject: Re: apache SSL question In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 15 May 2000, Steve Price wrote: > I'm trying to rewrite URLs for a secure area of my website. > In essence if a user tries to access the following URL > > http://www.mymachine.dom/secure/index.html > > then it will be rewritten as this. > > https://www.mymachine.dom/secure/index.html > > Here's what I have in apache.conf. > > > > RewriteEngine On > RewriteCond %{HTTPS} !=on > RewriteRule ^(.*) https://%{HTTP_HOST}/secure/$1 [R] > > Why don't you just use a Redirect directive in the non-secure section of the config file? It is just one line. Redirect /secure/ https://mymachine.dom/secure/ is all you need. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message