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