To get Python.py files to execute as CGI scripts on WAMP localhost, I put these statements in my .htaccess file in the www directory:
That allows the .py files to execute when called from the browser, like "http://localhost/helloworld.py
but the problem is: those .htaccess statements are making the server think all the html files are gone. When trying to view an html web page on localhost, it says the file cannot be found.
But when I comment out those statements in .htaccess, the html files work again.
How can the .htaccess statements be modified to allow both .py and .htm / .html (and .php , .pl , .cgi ) to work simultaneously?