Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 55260 invoked from network); 29 Oct 2009 12:43:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 29 Oct 2009 12:43:51 -0000 Received: (qmail 94629 invoked by uid 500); 29 Oct 2009 12:43:48 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 94601 invoked by uid 500); 29 Oct 2009 12:43:48 -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 94592 invoked by uid 99); 29 Oct 2009 12:43:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 12:43:48 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of covener@gmail.com designates 209.85.223.182 as permitted sender) Received: from [209.85.223.182] (HELO mail-iw0-f182.google.com) (209.85.223.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2009 12:43:45 +0000 Received: by iwn12 with SMTP id 12so1253745iwn.15 for ; Thu, 29 Oct 2009 05:43:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=rz047+XLq6CvNe8LF7b0miX9IjgSM0/CKv4GmqzA060=; b=Lrsl0FpKUXTY0js/65f45pw93oAmPfJuaZv47S55YL0SYs5qRZGWSDZl1iYFJymDmO QXozqIfrZL7G1MJxsuKB5AaRj/jv5PRfpxhvz2fbDJQQnl3a3+PM+MATRpxZtlAAHcM3 Ll3coQD/VnsHxAwpf2nLfCl4CgIR+7T+UI7P0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=cn+APIGWT3whOweySyESpmd7bYPBeUpm2B63ngXl5uhz8YZ474EK4wf6Wx3hfLh0Ba c8OSSQowCx3DVBs06l/kA8wLh7Db6hpsndbVw2nE2+2FFNa1FC0Lw4Czx8dQILqvGfcW hEqfH41iV2sAgzBHYEhQB7hsosNwc1+7V87+Y= MIME-Version: 1.0 Received: by 10.231.21.157 with SMTP id j29mr3582723ibb.28.1256820205424; Thu, 29 Oct 2009 05:43:25 -0700 (PDT) In-Reply-To: <6ed6382b0910290447i176b9e0dm9994200eff982571@mail.gmail.com> References: <26110773.post@talk.nabble.com> <6ed6382b0910290447i176b9e0dm9994200eff982571@mail.gmail.com> Date: Thu, 29 Oct 2009 08:43:25 -0400 Message-ID: <1404e5910910290543x5d0f36a5l6db16a04b489318f@mail.gmail.com> From: Eric Covener To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [users@httpd] How to Redirect to https after login? >> When I use a rewrite rule as shown below, >> RewriteRule ^/login(.*) https://%{SERVER_NAME}/login$1 [R,L] >> the parameters get lost, because the request is translated to a GET request. >> What do I need to do, to fix this problem? > > Use the QSA flag, so the query string doesn't get lost. QSA only does anything when you're explicitly adding a query string in your substitution. OP is redirecting a POST, which is something to be avoided. A simple HTML redirect in the output of the form-based login makes a lot of sense. -- Eric Covener covener@gmail.com --------------------------------------------------------------------- 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