From users-return-55272-apmail-httpd-users-archive=httpd.apache.org@httpd.apache.org Fri Aug 19 08:32:38 2005 Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 76702 invoked from network); 19 Aug 2005 08:32:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Aug 2005 08:32:38 -0000 Received: (qmail 44479 invoked by uid 500); 19 Aug 2005 08:32:28 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 44470 invoked by uid 500); 19 Aug 2005 08:32:28 -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 44457 invoked by uid 99); 19 Aug 2005 08:32:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 01:32:28 -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 [81.144.251.100] (HELO jubjub.westcoast.ltd.uk) (81.144.251.100) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Aug 2005 01:32:47 -0700 Received: from 192.168.1.156 ([192.168.1.156]) by jubjub.westcoast.ltd.uk ([192.168.1.18]) with Microsoft Exchange Server HTTP-DAV ; Fri, 19 Aug 2005 08:32:19 +0000 Received: from nickg by JUBJUB; 19 Aug 2005 09:32:43 +0100 From: Nick Gushlow Reply-To: nick.gushlow@westcoast.co.uk To: users@httpd.apache.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Organization: Westcoast Limited Date: Fri, 19 Aug 2005 09:32:43 +0100 Message-Id: <1124440363.9596.28.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] mod_rewrite problem X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hey guys, I've got a working set of conditions and a rule, but I'm struggling to add another condition/rule. The code below is working and turns any request for http://domain/word into http://domain/index.php?site=$1 RewriteLog /var/www/epp/logs/epp.rewrite.log RewriteLogLevel 9 RewriteEngine on RewriteCond %{REQUEST_URI} !^.*\.php RewriteCond %{REQUEST_URI} !^.*\.gif RewriteCond %{REQUEST_URI} !^.*\.jpg RewriteCond %{REQUEST_URI} !^.*\.htm RewriteCond %{REQUEST_URI} !^.*\.html RewriteCond %{REQUEST_URI} !^.*\.css RewriteCond %{REQUEST_URI} !^.*\.js RewriteCond %{REQUEST_URI} !^.*\.doc RewriteCond %{REQUEST_URI} !^.*\.pdf # Rewrite URL RewriteRule /([^/]*)$ /index.php?epp=$1 [L] I want to add a condition so that it skips the word abbey and continues as normal - eg http://domain/abbey just reads the abbey directory in htdocs - so I added RewriteCond %{REQUEST_URI} !^.*abbey(.*) It seems to partially work, in mozilla it seems to work, but in IE I just get page cannot be displayed. Adding the trailing slash makes it work, so I'm guessing that mozilla has programming to auto try a trailing slash if it gets page not found. Question is, what is wrong with my condition/rules that apache is not adding the trailing slash? -- note this is a virtual server and the other virtual servers on the same apache all handle the missing trailing slash so it's definitely something to do with my rewrite rules. Any help appreciated. Thanks, Nick. --------------------------------------------------------------------- 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