Although I can run test.cgi from the same location but app.cgi gives "Internal Server Error". I checked the permissions, chmoded 755 to everything.
The app is located in domains root so the url will be domain.com/app.cgi
This is the htaccess:
AddHandler cgi-script .cgi
Options +ExecCGI
IndexIgnore *
DirectoryIndex app.cgi
RewriteEngine on
RewriteRule ^$ app.cgi [L]
RewriteRule ^/$ app.cgi [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.cgi/$1
I'd really appreciate any help. Many Thanks!