Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 96249 invoked from network); 27 Feb 2004 19:45:49 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 27 Feb 2004 19:45:49 -0000 Received: (qmail 22871 invoked by uid 500); 27 Feb 2004 19:45:24 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 22856 invoked by uid 500); 27 Feb 2004 19:45:24 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 22837 invoked from network); 27 Feb 2004 19:45:24 -0000 Received: from unknown (HELO mta3.appstate.edu) (152.10.1.152) by daedalus.apache.org with SMTP; 27 Feb 2004 19:45:24 -0000 Received: from cs.cs.appstate.edu (cs.cs.appstate.edu [152.10.143.13]) by mta3.appstate.edu (8.12.8/8.12.8) with ESMTP id i1RJhOvF030644 for ; Fri, 27 Feb 2004 14:43:24 -0500 Received: from cs.appstate.edu (cookdl-0.cs.appstate.edu [152.10.134.74]) by cs.cs.appstate.edu (8.12.10/8.12.10) with ESMTP id i1RJhMJl439964 for ; Fri, 27 Feb 2004 14:43:22 -0500 (EST) Message-ID: <403F9D64.1010601@cs.appstate.edu> Date: Fri, 27 Feb 2004 14:41:24 -0500 From: Darryl Cook User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org References: In-Reply-To: Content-Type: multipart/alternative; boundary="------------010501050806060409040603" X-MailScanner-Information: Please contact the Helpdesk @ 6266 for more information X-MailScanner-ASU-mta3: Found to be clean X-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=1.354, required 6, HTML_30_40 0.81, HTML_MESSAGE 0.00, HTML_TITLE_EMPTY 0.54) X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Re: Mod Rewrite URL Redirection X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------010501050806060409040603 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit this will work as it was passed on to me by someone on this list as well...... RewriteEngine on RewriteCond %{REMOTE_ADDR} 152.10\.[0-9]+\.[0-9]+$ RewriteCond %{HTTPS} !=on RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L] substitute 152.10 for whatever your ip address begins with. darryl Ed Avis wrote: >"Mike Wagner" writes: > > > >>I want to be able to have http://testdomain.cxm to point to >>https://testdomain.cxm. I was told that mod_rewrite can do this. >> >> > >I thought the 'sslrequiressl' directive would normally be used. > > > --------------010501050806060409040603 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit this will work as it was passed on to me by someone on this list as well......

    RewriteEngine on
    RewriteCond %{REMOTE_ADDR} 152.10\.[0-9]+\.[0-9]+$
    RewriteCond %{HTTPS} !=on
    RewriteRule ^/(.*)$ https://%{SERVER_NAME}/$1 [R,L]

substitute 152.10 for whatever your ip address begins with.

darryl

Ed Avis wrote:
"Mike Wagner" <Mwagner@nps.k12.va.us> writes:

  
I want to be able to have http://testdomain.cxm to point to
https://testdomain.cxm.  I was told that mod_rewrite can do this.
    

I thought the 'sslrequiressl' directive would normally be used.

  
--------------010501050806060409040603--