Redirecting html requests to a python script

1 post / 0 new
#1 Thu, 10/29/2015 - 06:44
NikosGr

Redirecting html requests to a python script

Trying 5 hours now....i quit....

all i want to do is redirect every html request coming to 403 Forbidden which is actually /home/varsa/public_html to /home/varsa/public_html/cgi-bin/index.py

utilizing this .htaccess file inside public_html

Code: IndexIgnore * AddHandler cgi-script .py Options +ExecCGI

RewriteEngine On RewriteRule ^/?(.+.html) /cgi-bin/index.py [L,PT,QSA] and i keep getting all kinf of error the last being

Code: [Thu Oct 29 02:23:11.426675 2015] [autoindex:error] [pid 29057] [client 176.92.180.140:63437] AH01276: Cannot serve directory /home/varsa/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5)