Haha, ok I'm very sorry, but i seem to find the solution right after I
post a message.
So you must set the REAL_SCRIPT_NAME if you're using Apache I believe.
I just added this to my .htaccess:

SetEnv REAL_SCRIPT_NAME "/path/to/site"

Luca

On Oct 21, 2:08 pm, Luca Matteis <[EMAIL PROTECTED]> wrote:

> Hi, whenever i use web.redirect as so: web.redirect('/admin') it
> redirects tohttp://site.com/code.py/admin, instead ofhttp://site.com/admin.
>
> I think I have to set my default url path in web.py config or
> something, but cant figure out how to do so. Let me know, thanks.
> Luca.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to