apache - Hide the python script part in the url -


i have been looking around , found tons on informations , posts argument, every solution have tried has failed me. decided ask posting specific scripts here.

i'm deploying on share host (bluehost) application written in python pylons: www.rhodecode.org

everything works, little slow because apparently bluehost don't support mod_wsgi, have use standard cgi, works , python (cgi) script , .htaccess

#!/usr/bin/python  activate_this = '/home2/danielen/rhodecode-venv/bin/activate_this.py' execfile(activate_this, dict(__file__=activate_this))   import wsgiref.handlers paste.deploy import loadapp  myapp = loadapp('config:/home2/danielen/rhodecode/production.ini')  wsgiref.handlers.cgihandler().run(myapp) 

options +execcgi addhandler cgi-script .py  <ifmodule mod_rewrite.c>     rewriteengine on     rewritebase /     rewriterule ^index\.py$ - [l]     rewritecond %{request_filename} !-f     rewritecond %{request_filename} !-d     rewriterule . /index.py [l] </ifmodule> 

as said works, anytime go rhodecode.danieleniero.com url change in rhodecode.danieleniero.com/index.py (and more after that)

i hide /index.py/ part if possible , have tried far don't work or break link.

thank you, dan


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -