Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 89054 invoked from network); 18 Feb 2010 23:01:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Feb 2010 23:01:38 -0000 Received: (qmail 23829 invoked by uid 500); 18 Feb 2010 23:01:35 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 23802 invoked by uid 500); 18 Feb 2010 23:01:35 -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: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 23793 invoked by uid 99); 18 Feb 2010 23:01:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2010 23:01:34 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 207.158.59.100 is neither permitted nor denied by domain of joliver@john-oliver.net) Received: from [207.158.59.100] (HELO smtp.sdsitehosting.net) (207.158.59.100) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2010 23:01:27 +0000 Received: from ns.sdsitehosting.net (localhost.localdomain [127.0.0.1]) by smtp.sdsitehosting.net (8.13.8/8.13.8) with ESMTP id o1IN16Dc023118 for ; Thu, 18 Feb 2010 15:01:06 -0800 Received: (from joliver@localhost) by ns.sdsitehosting.net (8.13.8/8.13.8/Submit) id o1IN16Ne023117 for users@httpd.apache.org; Thu, 18 Feb 2010 15:01:06 -0800 X-Authentication-Warning: ns.sdsitehosting.net: joliver set sender to joliver@john-oliver.net using -f Date: Thu, 18 Feb 2010 15:01:06 -0800 From: John Oliver To: users@httpd.apache.org Message-ID: <20100218230106.GA22922@ns.sdsitehosting.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Subject: [users@httpd] RewriteCond question I'm dealing with a site that is accessed via https://domain.gov The certificate is for "domain.gov" I akready have a working rule to catch http://domain.gov/ and rewrite to https://domain.gov/ I also got http://www.domain.gov/ caught and rewritten with: RewriteCond %{http_host} ^www\.domain\.gov [NC] RewriteRule ^(.*)$ https://domain.gov/$1 [R=301] However, attempts to access https://www.domain.gov/ are still an issue. I tried: RewriteCond %{https} ^www\.domain\.gov [NC] RewriteRule ^(.*)$ https://domain.gov/$1 [R=301] But that didn't work (I didn't really expect it to, but it was worth a try!) What magic sauce do I need to catch and rewrite that attempt? -- *********************************************************************** * John Oliver http://www.john-oliver.net/ * * * *********************************************************************** --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org