> Well I tried to put the same code in httpd.conf file but it doesn't work, I have a "Syntax Error" when restarting apache because the command "RewriteEngine " is not recognized.

Do you have this line in the httpd.conf file:

LoadModule rewrite_module modules/mod_rewrite.so

Without it, it won't work.


Kenneth


  >  I want to force "www" in front of the url and i modify the .htaccess
file to do so and now I wonder where to put that file. I tried to put it
in the "web2py/apps" directory, in the "web2py/apps/views" directory, in
the "web2py/" directory but none of them works. I'm using apache as
webserver. Please let me know if you have any idea. Thanks

I think you have to put everything in either httpd.conf or then in the
virtual conf file you maybe have for every domain name. As wsgi is
proably used .htaccess is not read.

This is how I have understood it, maybe I m totally wrong.

Kenneth

Reply via email to