Gmane
From: Yoom Nguyen <yoom <at> hostwebase.com>
Subject: redirect issue
Newsgroups: gmane.comp.apache.user
Date: 2008-10-08 08:58:07 GMT (12 weeks, 6 days, 15 hours and 48 minutes ago)
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

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
   "   from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org