Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 36083 invoked from network); 9 Oct 2008 21:01:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Oct 2008 21:01:25 -0000 Received: (qmail 2567 invoked by uid 500); 9 Oct 2008 21:01:14 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 2534 invoked by uid 500); 9 Oct 2008 21:01:14 -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 2523 invoked by uid 99); 9 Oct 2008 21:01:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 09 Oct 2008 14:01:14 -0700 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_SECURITYSAGE,SPF_HELO_PASS,SPF_PASS,WHOIS_NETSOLPR 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; Thu, 09 Oct 2008 21:00:07 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by nmgapps.newmediagateway.com (Postfix) with ESMTP id 59C1F7080C5 for ; Thu, 9 Oct 2008 16:00:13 -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 i9MElzn1J34l for ; Thu, 9 Oct 2008 16:00:13 -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 ECF2D7080DC for ; Thu, 9 Oct 2008 16:00:12 -0500 (CDT) Received: from [192.168.5.50] ([69.15.248.2]) by mx1.ad.newmediagateway.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 9 Oct 2008 15:59:27 -0500 Message-ID: <48EE70DC.8080900@newmediagateway.com> Date: Thu, 09 Oct 2008 16:00:12 -0500 From: Justin Pasher User-Agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724) MIME-Version: 1.0 To: users@httpd.apache.org References: <1877976.81223456287746.JavaMail.root@mail> In-Reply-To: <1877976.81223456287746.JavaMail.root@mail> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 09 Oct 2008 20:59:27.0437 (UTC) FILETIME=[EAA80FD0:01C92A51] X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] redirect issue Yoom Nguyen wrote: > Greetings, > > Could some one tell me what is the correct Redirect syntax and RewriteCond to get the following > requirements to work? > > > This is what I currently have and it complaining. > I am running SuSe 10. > > > RewriteEngine on > RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK) > RewriteRule .* -[F] > > RedirectMatch Permanent ^/$ http://corp.test.com/Pub/portal/desktop > Redirect Permanent /groupMaterials/MPSERS_plan.pdf http://corp.test.com/Pub/Grials/MPSERS_Plan.pdf > Redirect Permanent /Vis/dvDnal.pdf http://corp.test.com/Pub.pdf > Redirect Permanent /about http://corp.test.com/PublicWeb/appr/portal/desktop?_nfpb=true&_page=bADD_pHome > > > > Complain Error when I restart apache2*** > > Syntax error on line 25 of /etc/apache2/vhosts.d/vipcorpinuat-yast2_vhost.conf: > Redirect takes two or three arguments, an optional status, then document to be redirected and destination URL > > > The line 25 is the second redirect line. This line > Redirect Permanent /groupMaterials/MPSERS_plan.pdf http://corp.test.com/Pub/Grials/MPSERS_Plan.pdf > > > > Thank you in advance for assist in this issue > > Y > Are you sure the file with these directives is what apache is complaining about? The directives themselves look fine to me, and I copied them verbatim to my server and it doesn't complain. Perhaps the file itself is corrupted (something like Windows CRLF line endings instead of UNIX LF)? -- 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