.htaccess issue with the fcgi directory

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


I have problem configured the htaccess file for the share hosting.

My htaccess file:
DirectoryIndex /public/cgi/test2.pl

AddHandler fastcgi-script .fcgi

RewriteEngine On
RewriteCond % !-d
RewriteCond % !-f
RewriteRule (.*) /cgi/$1 [L]

My directory and htaccess file location


now, I try to access the test2.pl and test1.pl via
http://www.mydomain.com/cgi/test1.pl (i got a error 500)
http://www.mydomain.com/ (i got the test2.pl result)

I wonder whether it is someone could delight me about the issue or
pinpoint for any solution.

thank you

Site Timeline