On Apr 4, 2011, at 2:50 PM, Ahmed Sharkawy wrote: > thanks for your answer but I want to change many urls so I think your script > can do so ?! > > I want init/account/get to be init/account > init/login/index to be init/login
You'll find it easier if you make the default function in each controller have the same name. For example, init/account/index instead of init/account/get, in your example. > > On 4 April 2011 23:20, Bruno Rocha <[email protected]> wrote: > at the web2py root folde I just created a file called routes.conf with this > > http://snipt.net/rochacbruno/routesconf (replace my domain with your domain > and application) > > at the web2py root folder create a file calles routes.py with: > > http://snipt.net/rochacbruno/routespy > > > Restart web2py and www.yourdomain/app/default/index will be > www.yourdomain.com/index > > > > On Mon, Apr 4, 2011 at 6:09 PM, Ahmed Sharkawy <[email protected]> wrote: > @Bruno Rocha > > t is very good site but the answer is so complicated ! > > > > On 4 April 2011 22:13, Bruno Rocha <[email protected]> wrote: > I dont if it helps, but I use the autoroutes which works very fine for me: > > http://snipt.net/rochacbruno/routesconf > > http://snipt.net/rochacbruno/routespy > > > -- > Bruno Rocha > [ About me: http://zerp.ly/rochacbruno ] > > > > On Sun, Apr 3, 2011 at 1:01 PM, Shark <[email protected]> wrote: > Hello > > I am asking about url rewriting in web2py withGAE > > I want to make our site page > www.site.com/init/login > > to > > www.site,com/login > > can you help me ? > > someone tell me change app,yaml > others > say change routers.py > > so I need your help > > Thanks > > > > > -- > Ahmed Sharkawy > >

