Massimo

. Once again, *many* thanks.  *It worked 100%*
~ Rob

. I have summarized what you taught me here:

What file does:

**
*
http://somesocialwebsite/~jsmith <http://somesocialwebsite/jsmith>*
will redirect to:
*http://somesocialwebsite/default/user/profile*

FileName: *routes.py*

*File Location (on Mac):*

1- In the Package web2py.app - right click and "*Show Package Contents*" to 
see inside
2- place r*outes.py*  in 
    *Users/[YourUserName]/Desktop/web2py/web2py.app/Contents/Resources*
**

*File Contents:
*
!/usr/bin/python
# -*- coding: utf-8 -*-

# default_application, default_controller, default_function
# are used when the respective element is missing from the
# (possibly rewritten) incoming URL

# Note: ProfilePublic  is the NAME of  application.

# begin
routes_in = [
   ('/ProfilePublic/~$anything','/ProfilePublic/default/userinfo/$anything'
),
]
#end
routes_out = [
   ('/ProfilePublic/default/userinfo/$anything','/ProfilePublic/~$anything'
),
]




>>>

-- 



Reply via email to