You have two options:
1) rename default.py into great_keyword.py (the controller does not
need to be called default)
2) create a file web2py/routes.py that says
routes_in=(('/myapp/great_keyword/(?P<a>.)','/myapp/default/\g<a>'),)
routes_out=(('/myapp/default/(?P<a>.)','/myapp/great_keyword/\g<a>'),)
On Sep 26, 9:07 am, Web2py-SuperFan <[email protected]> wrote:
> Thanks for this great tool! Bought the book too, still digging
> through. My question is on Search Engine Optimization.
>
> Is there a way to have a different file name besides default.py be
> the file name used when hitting a url without a controller in the
> url? (without using urlrewrites)
>
> ie I want a call to http://mysite.com/myapp
>
> to result in
>
> http://mysite.com/myapp/great_keyword/index.html
>
> not
>
> http://mysite.com/myapp/default/index.html
>
> Thanks
> Mark
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" 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
-~----------~----~----~----~------~----~------~--~---