AddHandler cgi-script .py Options +ExecCGI # Force regular CGI (non-FastCGI) SetEnv FCGI_FORCE_CGI Y # Uncomment if you want pretty URL (ie cgi/post) #RewriteEngine On #RewriteBase /cgi/ #RewriteRule ^weabot\.py/ - [L] #RewriteRule ^(.*)$ weabot.py/$1 [L]