Create a file web2py/routes.py and write in it:
routes_in=('/(?P<a>.*)',('/myapplicationname/mycontrollername/$a'),)
routes_out=('/myapplicationname/mycontrollername/(?P<a>.*)',('/$a'),)
On Jul 16, 10:16 pm, Dan <[email protected]> wrote:
> Is there a way to make the URLs used by a web2py application a bit
> simpler when running GAE?
>
> for example, this is the URL when using web2py's standard settings:
> 1)http://myapp.appspot.com/myapplicationname/mycontrollername/myfunctio...
>
> but it would be better to use this throughout (not simply a one-time
> redirect, but a persistent aliasing across all controllers and
> functions so that the user never sees "myapplicationname") :
> 2)http://myapp.appspot.com/mycontrollername/myfunctionname
>
> or even simpler:
> 3)http://myapp.appspot.com/myfunctionname (which is defined in the
> "default.py" controller)
>
> I've seen a few conversations about this, but am confused as to
> whether I should be working with GAE's app.yaml, or with web2py's
> routes.py. Are there any considerations I should keep in mind?
>
> The reason for this is to shorten the URL to make it easier to
> remember and to be friendlier to search engine classification methods.
>
> thanks
> Dan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---