Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 80940 invoked from network); 17 Jul 2006 20:51:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jul 2006 20:51:17 -0000 Received: (qmail 83131 invoked by uid 500); 17 Jul 2006 20:51:08 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 83119 invoked by uid 500); 17 Jul 2006 20:51:07 -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 83108 invoked by uid 99); 17 Jul 2006 20:51:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 13:51:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.67.202.165] (HELO bismuth.webfusion.co.uk) (212.67.202.165) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 13:51:06 -0700 Received: from 87-194-45-130.bethere.co.uk ([87.194.45.130] helo=[192.168.1.65]) by bismuth.webfusion.co.uk with esmtpa (Exim 4.54) id 1G2a3B-0006JQ-AM for users@httpd.apache.org; Mon, 17 Jul 2006 21:50:45 +0100 Message-ID: <44BBF821.50002@pidster.com> Date: Mon, 17 Jul 2006 21:50:41 +0100 From: Pid Reply-To: p@pidster.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: users@httpd.apache.org References: <44BBD988.1090902@csulb.edu> <44BBDF2C.9000408@csulb.edu> In-Reply-To: <44BBDF2C.9000408@csulb.edu> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] help with rewrite rule X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N RewriteRule /(.*)(/)?$ http://localhost:81/$1$2 you need the second dollar variable to pick up the second pair of brackets, instead of always appending a slash. Mike Soultanian wrote: > Boysenberry Payne wrote: >> How about adding this: >> >> RewriteRule /(.*)(/)?$ http://localhost:81/$1/ [P] >> > > That almost worked! > > That's interesting because it gets me through to the page, but still > leaves off the trailing slash. That in turn breaks the relative links > which are looking for the trailing slash as can be seen here (I just set > up a dns entry for my server): > > http://cfdev.cota.csulb.edu/cota > > whereas if you put the trailing slash, the trailing slash is getting > appended to everything and seems to break other things on the site such > as images. When trying to view: > > http://cfdev.cota.csulb.edu/cota/layouts/images/about/about-banner.jpg > > I'll get the following error: > > The requested URL /cota/layouts/images/about/about-banner.jpg/ was not > found on this server. > > Any ideas? > > 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 > > > --------------------------------------------------------------------- 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