Hi,

i used Jonathan's suggestion about url redirection from 'www.domain.com' to 
'domain.com'.

In routes.py i set:

routers = dict(

    # base router
    BASE=dict(
        default_application='welcome',
        domains = {
        'domain.com' : 'myapp',
        'www.domain.com' : 'myapp',
        }
    ),
)


In myapp's model 0.py i set:

if request.env.http_host == 'www.domain.com':
    redirect("http://domain.com%s"; % request.env.request_uri, 301)


The problem is that:
 

 'www.domain.com' returns 'domain.com/myapp/controller/funcion/'


and i would like to get rid of 'myapp' in url.

How can i achieve that?

Best,
Kristjan 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to