Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 31706 invoked from network); 8 Dec 2007 01:19:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 Dec 2007 01:19:35 -0000 Received: (qmail 38520 invoked by uid 500); 8 Dec 2007 01:19:13 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 38499 invoked by uid 500); 8 Dec 2007 01:19:13 -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 38488 invoked by uid 99); 8 Dec 2007 01:19:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Dec 2007 17:19:13 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [85.214.39.40] (HELO mail.jc-hosting.org) (85.214.39.40) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 08 Dec 2007 01:19:15 +0000 Received: (qmail 31874 invoked by uid 210); 8 Dec 2007 01:19:14 -0000 Received: from 128.250.2.82 by zion (envelope-from , uid 201) with qmail-scanner-1.25st (spamassassin: 3.2.1. perlscan: 1.25st. Clear:RC:1(128.250.2.82):. Processed in 0.594477 secs); 08 Dec 2007 01:19:14 -0000 Received: from genesis.ridley.unimelb.edu.au (HELO localhost) (lists%penpal4u.net@128.250.2.82) by mail.jc-hosting.org with ESMTPA; 8 Dec 2007 01:19:13 -0000 Date: Sat, 8 Dec 2007 12:18:44 +1100 From: Christian Lerrahn To: users@httpd.apache.org Message-ID: <20071208121844.55ab1ac1@penpal4u.net> X-Mailer: Claws Mail 3.1.0cvs26 (GTK+ 2.12.1; i686-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] Redirecting paths with extra slashes Hi, I have a site that for some reason got indexed by Google with wrong paths which contain too many slashes. E.g. instead of an entry for /foo/bar there might be one for /foo///bar Now this is no problem for a Apache but it is for some of my pages because they use relative paths. If I have an image in /foor/bar/index.html which looks like that will work fine for /foo/bar but not for /foo///bar which will then look for /foo/img instead of /img. What I would like to do is get Apache to redirect wrong addresses like this to the correct one. That way I get the relative paths correct and hopefully one day Google will have it right, too. I was thinking of mod_rewrite but I couldn't get it to work. However, I only can get rules that either don't seem to do anything or ones that get me into an infinite loop of redirects. Can anybody give me a hint? Cheers, Christian --------------------------------------------------------------------- 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