>> problem is I don't know where to put the file .htaccess ? I am new and I don't know how to do things properly. But for testing I have installed web2py on alwaysdata 10M free server as follows:
1. Under their /www folder I have /www/web2py with standard web2py tree, include my application mywebapp 2. In addition I have folder /www/web2py/public 3. In alwaysdata administration, section Domains, I have the entry: Name=mywebapp.alwaysdata.net, Path=/www/web2py/public 4. In /www/web2py/public I have .htaccess and web2py.cfgi 5. In addition I have folder /www/web2py/public/mywebapp/static with all static files (instead off /www/web2py/applications/mywebapp/ static) ** Here is .htaccess: AddHandler fcgid-script .fcgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ web2py.fcgi/$1 [QSA,L] ** Here is web2py.cfgi: #!/usr/bin/python import os, sys _PROJECT_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.insert(0, _PROJECT_DIR) os.chdir(_PROJECT_DIR) import gluon.main import gluon.contrib.gateways.fcgi as fcgi fcgi.WSGIServer(gluon.main.wsgibase, environ={'web2py_path': _PROJECT_DIR}).run()