See
http://web2py.com/books/default/chapter/29/04/the-core#Parameter-based-system.
In routes.py, something like:
routers = dict(
BASE = dict(
default_application='init',
default_controller='default',
default_function='index'
),
init = dict(
functions=['list', 'of', 'functions', 'in', 'default', 'controller']
),
)
Anthony
On Friday, September 15, 2017 at 2:43:11 AM UTC-4, Joe wrote:
>
> I've been trying to do this for so long, but with *pythonanywhere*
> hosting, it doesn't seem to be possible to get rid of the *init/default/*
> part of the URL.
>
> I think, this nested sub-directories structure is not optimal for SEO and
> also makes it difficult to place the *robot,txt* and *sitmap.xml* in a
> way that it's easy to find for search engines?
> I am not a SEO expert, but I read that this kind of URL structure is not
> optimal.
>
> When I looked at the Web2py website, *which I think is also hosted by
> pythonanywhere*, I noticed that, www.web2py.com has not solved this
> problem either i.e. http://www.web2py.com/init/default/support
>
> Is there any way to change this URL structure?
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
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 [email protected].
For more options, visit https://groups.google.com/d/optout.