Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 84942 invoked from network); 15 Sep 2008 15:09:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Sep 2008 15:09:56 -0000 Received: (qmail 7185 invoked by uid 500); 15 Sep 2008 15:09:42 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 7169 invoked by uid 500); 15 Sep 2008 15:09:41 -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 7158 invoked by uid 99); 15 Sep 2008 15:09:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 08:09:41 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of justinp@newmediagateway.com designates 216.205.154.94 as permitted sender) Received: from [216.205.154.94] (HELO nmgapps.newmediagateway.com) (216.205.154.94) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 15:08:42 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by nmgapps.newmediagateway.com (Postfix) with ESMTP id 4EB647080DC for ; Mon, 15 Sep 2008 10:09:14 -0500 (CDT) X-Virus-Scanned: Debian amavisd-new at nmgapps.newmediagateway.com Received: from nmgapps.newmediagateway.com ([127.0.0.1]) by localhost (nmgapps.newmediagateway.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RyPPKzaZnCLF for ; Mon, 15 Sep 2008 10:09:14 -0500 (CDT) X-NMG-local: yes Received: from mx1.ad.newmediagateway.com (mx1.newmediagateway.com [10.205.154.91]) by nmgapps.newmediagateway.com (Postfix) with ESMTP id 346197080C5 for ; Mon, 15 Sep 2008 10:09:14 -0500 (CDT) Received: from [192.168.5.50] ([69.15.248.2]) by mx1.ad.newmediagateway.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 15 Sep 2008 10:08:40 -0500 Message-ID: <48CE7A99.7020906@newmediagateway.com> Date: Mon, 15 Sep 2008 10:09:13 -0500 From: Justin Pasher User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: users@httpd.apache.org References: <75645bbb0809141126i6865d237k1f95a8279faf22ef@mail.gmail.com> In-Reply-To: <75645bbb0809141126i6865d237k1f95a8279faf22ef@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 15 Sep 2008 15:08:40.0765 (UTC) FILETIME=[EFF2C6D0:01C91744] X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] mod_rewrite question Alain Roger wrote: > Hi, > > i would like to rewrite some of my pages so i have the following > .htaccess file under my subfolder _sub/test/ > > Options +FollowSymlinks > RewriteEngine on > RewriteRule ^article-([0-9]+)-([0-9]+)\.php$ > article.php?numero=$1&page=$2 [L] > > i also have 1 file article.php which only display the numero and page > arguments. > > therefore when my browser try to reach the page article-1234-5.php (as > written into my address bar of my browser), apache redirect it to > article.php?numero=1234&page=5 > > however i get the 500 error. > i do not get the 500 error if i comment the Options +FollowSymlinks > (with #), but in this case i get a 404 Not Found (/_sub/test/article.php) > > what is the problem ? > thx. The 500 error is probably due to the directory not being setup to allow overrides in .htaccess (see the AllowOverride directive). Whether or not it is affecting your rewrite rules depends on whether your files or directories are symlinks. Check the apache error log to see what what page the browser is attempting to pull. -- Justin Pasher --------------------------------------------------------------------- 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