[web2py] Re: no-WWW in routes

2010-11-04 Thread Francisco Costa
ok I've added the following to my virtual-host RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] On 4 Nov, 16:22, mdipierro wrote: > Not with routes. Apache mod_rewrite > > On Nov 4, 10:49 am, Francisco Costa wrote: > > > Is there a way that w

[web2py] Re: no-WWW in routes

2010-11-04 Thread mdipierro
Not with routes. Apache mod_rewrite On Nov 4, 10:49 am, Francisco Costa wrote: > Is there a way that we can route a website so thathttp://www.domain.com > redirect tohttp://domain.com > If you can't do this with routes how you can do it?