Forum Moderators: phranque
options FollowSymLinks execcgi
RewriteRule formmail\.cgi$ /badbot.cgi [L]
When I access [mysite.com...] all I get is a 403 forbidden error. My log file shows:
"script not found or unable to stat: /home/virtual/site__/fst/var/www/cgi-bin/formmail.cgi"
I know formail.cgi will not show as it is a non-existent file. What am I doing wrong?
I see several potential problems:
When you get the error, what does your error log have to say about it?
Jim
I get a 404 error and the following in my log file:
script not found or unable to stat: /home/virtual/site__/fst/var/www/cgi-bin/formmail.cgi
I'm sorry, but I don't understand what prepend the directory name means.
[b]O[/b]ptions +FollowSymLinks +[b]E[/b]xec[b]CGI[/b]
RewriteEngine on
RewriteRule formmail\.cgi$ trap.cgi [L]
- or prepend the directory name, like this -
RewriteRule formmail\.cgi$ [b]/cgi-bin/[/b]trap.cgi [L]