I downloaded web2py version 1.75.5. I then renamed the welcome
application to init.
I want to remove the application prefix from the application's URLs
because I want to only expose one application. I created a routes.py
in the web2py folder and tried the following:
#---------------------------------------------
routes_in = (
('/testme', '/init/default/index'),
)
routes_out = (
('/init/default/index', '/testme'),
)
#---------------------------------------------
It worked fine.
I then tried
#---------------------------------------------
routes_in = (
('/(?P<any>.*)', '/init/ any>'),
)
routes_out = (
('/init/(?P<any>.*)', '/ any>'),
)
#---------------------------------------------
and this:
#---------------------------------------------
routes_in = (
('/$c/$f', '/init/$c/$f'),
)
routes_out = (
('/init/$c/$f', '/$c/$f'),
)
#---------------------------------------------
Neither worked. This is straight from the book:
http://web2py.com/book/default/section/4/15
--
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.