Hide script extension

Posted by Ali on Stack Overflow See other posts from Stack Overflow or by Ali
Published on 2010-05-26T22:41:38Z Indexed on 2010/05/29 12:32 UTC
Read the original article Hit count: 426

Filed under:
|
|

I have a html form that posts to a python script test.py. If someone tries to access the script directly, it redirects them to the form.

I not using a web framework, just straight python cgi programming. My website is hosted on a shared hosting provider that allows me access to a .htaccess file.

I wanted to know if there was a way to have the form post to the script and in the address bar show mydomain.com/test/ and not mydomain.com/test.py ?

Thanks.

© Stack Overflow or respective owner

Related posts about python

Related posts about web-applications