redirect issue

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux