Massimo,
I am not sure if I understand you correctly.

the routes_in looks something like:

('.*:/create','/init/default/create'),
('.*:/mycases','/init/default/mycases'),

create & mycases are functions in default.py. After this routes
rewrite, I am able to type <server>/create and it redirects to
<server>/init/default/create. But it is still possible to type
<server>/init/default/create and the function executes. It is not
errored out. I want to block  <server>/init/default/create. So how do
I block the default URLs? Are you saying I define a URL rewrite
mapping /init/default/* to error pages?

Thx,
Joseph

On Mar 31, 7:43 am, mdipierro <[email protected]> wrote:
> You need to set a rule that maps into an error page.
>
> On Mar 30, 8:11 pm, Joseph Jude <[email protected]> wrote:
>
> > All,
> > I have used routes.py for URL mapping and it is working as expected.
> > However I can type the default URLs (/init/default/index, /init/
> > default/*) on the browser and it still accepts it. How can these
> > default URLs be blocked?
>
> > Thank you,
> > Joseph
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to