Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 2024 invoked from network); 29 Mar 2008 16:06:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2008 16:06:37 -0000 Received: (qmail 89861 invoked by uid 500); 29 Mar 2008 16:06:24 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 89830 invoked by uid 500); 29 Mar 2008 16:06:24 -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 89819 invoked by uid 99); 29 Mar 2008 16:06:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2008 09:06:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of scarleton@gmail.com designates 64.233.166.183 as permitted sender) Received: from [64.233.166.183] (HELO py-out-1112.google.com) (64.233.166.183) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 29 Mar 2008 16:05:43 +0000 Received: by py-out-1112.google.com with SMTP id d37so1280911pye.29 for ; Sat, 29 Mar 2008 09:05:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; bh=sUJBBHfWdmdhdEAlt1F2KWZ784p1rZfr/s+YHwEfMTk=; b=Qo8/qJaKxy1/xcSFRkWf0e0HXEZYCNe5Z3xqldXGtOdi+g4kWbj7JYUMbnMX3MR6CHBSH7PcpG3GrJOcInR8c1CmHZeQqxKap5YAx4FluyELznTqftRfmUXEaOie809XhJvHyafPu9CJ6tleikntAB7gq/HmtczBshuZYvxRiYY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=j0nLE5zymSsSFZjddI32/di5TO+FCcplFLBl2aXW/TEkcr3+rxgIJe0G34/Dp7o87dH2ziJakhzfJJGPGQ8Mm1wG7NbGIYqvSinrUvpHr4z3mvmNz4tc5lAMgFZZZp63UugGoXhCT4T41PNAWyeEXpwoZha3wRIVHV7TXnxuWCU= Received: by 10.35.71.17 with SMTP id y17mr7848919pyk.44.1206806753796; Sat, 29 Mar 2008 09:05:53 -0700 (PDT) Received: by 10.35.13.3 with HTTP; Sat, 29 Mar 2008 09:05:53 -0700 (PDT) Message-ID: <8d38ca0a0803290905q43b71ce7w69d51351df1bcd6@mail.gmail.com> Date: Sat, 29 Mar 2008 12:05:53 -0400 From: "Sam Carleton" Sender: scarleton@gmail.com To: users@httpd.apache.org In-Reply-To: <1404e5910803290804g2b4e86b2qde6746ede2cb4535@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8d38ca0a0803282042m44280dafsb42a8fff747624a8@mail.gmail.com> <1404e5910803290446w2b147079s8543a5520314d09b@mail.gmail.com> <8d38ca0a0803290546t6cdbd648x32f8c91c128bd33@mail.gmail.com> <1404e5910803290804g2b4e86b2qde6746ede2cb4535@mail.gmail.com> X-Google-Sender-Auth: 2baec8e57392d15a X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Where to place rewrite rules? Sorry about the last email a few minutes ago, that was meant for my customer, trying to figure out why Apache is running so slow for him... On Sat, Mar 29, 2008 at 11:04 AM, Eric Covener wrote: > On Sat, Mar 29, 2008 at 8:46 AM, Sam Carleton > wrote: > > Eric, > > > > When I do the following, the rewrite rules don't seem to work. Where > > should I be placing the rewrite rules and what settings should I have > > for AllowOverride to stop it from looking for the .htaccess? > > RewriteRules need to be in the proper virtual host, AllowOverride none > prevents apache from looking for .htaccess files So AllowOverride none does not effect DirectoryIndex? > When you pull your rules out of Directory/htaccess, the URL you're > testing against changes (the per-directory component hasn't been > stripped out -- now it always starts with a slash) Ok, so I need to add the leading slash. The first two rules are to rewrite the URL for my Apache C Module which I currently have handling a location. something is going wrong because I do see in the rewrite rule log that it is getting rewritten, but the Apache C Module isn't getting the handler anymore. Here is what I have right now, not scoped in anything else: RewriteEngine On RewriteRule ^/images/([^/]+)/([^/]+)$ /theImage?fldoid=$1&imgoid=$2 [L] RewriteRule ^/images/([^/]+)/([^/]+)/([^/]+)$ /theImage?fldoid=$1&imgoid=$2&tn=$3 [L] RewriteRule ^/category/([^/]+)$ /index.php?fldoid=$1 [L] RewriteRule ^/category/([^/]+)/i/([^/]+)$ /index.php?fldoid=$1&imgoid=$2 [L] RewriteRule ^/category/([^/]+)/p/([\d]*)$ /index.php?fldoid=$1&p=$2 [L] SetHandler promenadeImages --------------------------------------------------------------------- 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