thanks you.

I mean an example of the  pattern-based router.
Before I leave my office, I have try tu use the  pattern-based router.
And i don't find the solution, for example when i request the url
mydomain/user1/myApp that work but when I click on home
Home point to mydomain/user1/myApp/user1/myApp.
I give an other try  and home point to mydomain/myApp
So i think the routes_in is correct but the routes_out is incorrect
I am @home now.



2013/7/3 Jonathan Lundell <jlund...@pobox.com>

> On 3 Jul 2013, at 12:38 PM, Icham Achtir <iach...@gmail.com> wrote:
>
> Thanks can you give my an example ?
>
>
>
> For path_prefix, you mean? Just specify path_prefix = 'user1' in your
> router. The router will strip that from incoming URLs, so the rest of the
> URL can include an application.
>
> routers = dict(
>     BASE = dict(
>         path_prefix = 'user1',
>         default_application = 'aut',
>     ),
> )
>
> Specifying the default application as aut ought to let you get away with
> incoming URLs that aren't prefixed by 'user1'.
>
> --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/ybpY_llWT5s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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