Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 73115 invoked from network); 13 Jan 2009 07:56:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jan 2009 07:56:33 -0000 Received: (qmail 16987 invoked by uid 500); 13 Jan 2009 07:56:22 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 16964 invoked by uid 500); 13 Jan 2009 07:56:22 -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 16955 invoked by uid 99); 13 Jan 2009 07:56:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Jan 2009 23:56:22 -0800 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msoultan@csulb.edu designates 134.139.1.30 as permitted sender) Received: from [134.139.1.30] (HELO iron1.its.csulb.edu) (134.139.1.30) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Jan 2009 07:56:14 +0000 X-IronPort-AV: E=Sophos;i="4.37,258,1231142400"; d="scan'208";a="14255596" Received: from host146-1.vpnhosts.csulb.edu (HELO [134.139.146.1]) ([134.139.146.1]) by iron1.its.csulb.edu with ESMTP/TLS/DHE-RSA-AES256-SHA; 12 Jan 2009 23:55:53 -0800 Message-ID: <496C4909.2010905@csulb.edu> Date: Mon, 12 Jan 2009 23:55:53 -0800 From: Mike Soultanian User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: users@httpd.apache.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] redirect trailing slash problem I have a virtual host that accepts all traffic on port 80 and then forwards that traffic to another virtual host on port 81: RewriteRule /(.*) http://localhost:81/$1 [P,L] It works great except when I leave off the backslash. So, for example, "http://foobar.com/" works correctly and so does "http://foobar.com" (no trailing slash). However, if I add a folder without the slash (i.e. "http://foobar.com/folder") , I get forwarded to "http://localhost:81/folder/" instead of "http://foobar.com/folder". Does anyone know how to tweak my rewrite such that it will forward correctly, regardless of whether or not the folder has a trailing slash? Thanks! Mike --------------------------------------------------------------------- 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