Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 71350 invoked from network); 29 Jun 2006 20:58:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Jun 2006 20:58:42 -0000 Received: (qmail 25860 invoked by uid 500); 29 Jun 2006 20:58:32 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 25837 invoked by uid 500); 29 Jun 2006 20:58:32 -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 25826 invoked by uid 99); 29 Jun 2006 20:58:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 13:58:31 -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 [152.2.50.65] (HELO claire.hsrc.unc.edu) (152.2.50.65) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Jun 2006 13:58:30 -0700 Received: from [127.0.0.1] (pc59.hsrc.unc.edu [152.2.50.59]) by claire.hsrc.unc.edu (8.12.11/8.12.11) with ESMTP id k5TKw8pP015946 for ; Thu, 29 Jun 2006 16:58:08 -0400 (EDT) Message-ID: <44A43EDF.9030001@unc.edu> Date: Thu, 29 Jun 2006 16:58:07 -0400 From: Dwayne Tharpe User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: users@httpd.apache.org References: <44A41708.5060604@unc.edu> <44A430C4.1040700@durham.ac.uk> In-Reply-To: <44A430C4.1040700@durham.ac.uk> 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] .htaccess error URGENT X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N I tried that but no luck. I thought there would be something that I could use to just tell it ignore that it's a subdirectory name and go ahead with the re-write. Dwayne Andy Buckley wrote: > Joshua Slive wrote: >> On 6/29/06, Dwayne Tharpe wrote: >>> Hi all, >>> >>> I'm new to this and have never used mod-rewrite before or used regular >>> expressions. >>> >>> We have a need to mod_rewrite a link. Below is what I'm using in a >>> .htaccess file: >>> >>> RewriteEngine on >>> Options FollowSymLinks >>> RewriteRule ^overview$ /guide/index.cfm?item=Chapter&Chapter_ID=C342 >>> [L] >>> >>> The problem is that "overview" is the name of a subdirectory under >>> guide, so I get an error (403 I think) >>> when it tries to rewrite. I can't rename the subdirectory and the users >>> are demanding that they be able to use just the word "overview" as a >>> hyperlink. >>> >>> Any suggestions? And I'm under a major time constraint :( >> >> What does the error log say? What does the RewriteLog say? >> >> The easist way to do this would be to put the RewriteRule in the main >> server config rather than in .htaccess. Then you can simply use >> RewriteRule ^/guide/overview$ >> /guide/index.cfm?item=Chapter&Chapter_ID=C342 [L] > > Otherwise, as you're using a .htaccess file, you probably need to add a > "RewriteBase /guide" statement. Otherwise you get into a sort of > chicken/egg scenario about the order of resolving URLs to bits of the > filesystem: see the bit at the top of the mod-rewrite docs for more info. > > Andy > > > > --------------------------------------------------------------------- > 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 -- Dwayne Tharpe Applications Analyst Programmer II Highway Safety Research Center @ UNC 919.843.4963 --------------------------------------------------------------------- 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