Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 56312 invoked from network); 9 May 2006 18:54:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 May 2006 18:54:01 -0000 Received: (qmail 27213 invoked by uid 500); 9 May 2006 18:53:51 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 27184 invoked by uid 500); 9 May 2006 18:53:50 -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 27168 invoked by uid 99); 9 May 2006 18:53:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 11:53:50 -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 [64.34.165.33] (HELO gulfbridge.net) (64.34.165.33) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 09 May 2006 11:53:49 -0700 Received: from [216.78.207.5] (adsl-216-078-207-005.sip.sdf.bellsouth.net [216.78.207.5]) by gulfbridge.net (Postfix) with ESMTP id D6F3FD058E for ; Tue, 9 May 2006 14:53:27 -0400 (EDT) Message-ID: <4460E522.3040002@gulfbridge.net> Date: Tue, 09 May 2006 14:53:22 -0400 From: John Hicks User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) MIME-Version: 1.0 To: users@httpd.apache.org References: <8F798BFDA851B943B3A1B2510E928785BE16E8@airmail.wirelessworld.airvananet.com> In-Reply-To: <8F798BFDA851B943B3A1B2510E928785BE16E8@airmail.wirelessworld.airvananet.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Apache Mode_rewrite query : Newbie question X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Rajat Sharma wrote: > Creating of configuration such as below is fine. But....Is above to be put in httpd.conf or .httpaccess or in completely new file....mod_rewrite.conf.... > > //////////////////////////////////// > RewriteEngine on > RewriteBase /~quux/ > RewriteRule ^foo$ foo/ [R] > ////////////////////////////////// > > The above info. is what's missing on the page sent below. > I started to reply with the standard "RTFM" but when I checked, I saw that the manual doesn't really make this clear, so: All of the Apache directives go in httpd.conf Many of them can also go in .htaccess (not .httpaccess) when they apply to a single directory (the directory where you place the .htaccess file). I believe the rewrite rules best go in the main httpd.conf file. Good luck. --J --------------------------------------------------------------------- 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