One more question if I may (I still don't get it): I am also replacing an existing website with a new web2py site. I've found links on other websites that still need to work with the new website.
If someone clicks on an old link such as "mydomain.com/aboutus.html", I would like it to redirect and find my new page at (with full url) "mydomain.com/init/default/index/aboutus. It is not obvious (to me) after looking at router_example.py and the book. Do I need to use the pattern based approach for this ? thanks Andrew W On Friday, January 11, 2013 11:29:25 AM UTC+13, Andrew W wrote: > > Yes, I think you're correct. I must have glossed over this in my book > searching. > Thanks. > > On Friday, January 11, 2013 10:56:01 AM UTC+13, Anthony wrote: >> >> I don't think anything regarding URL rewrite was removed from the book, >> though the parameter-based system in particular has never been thoroughly >> documented there. Instead, the penultimate line of this >> section<http://web2py.com/books/default/chapter/29/04#Parameter-based-system>simply >> refers you to the additional documentation within the >> router.example.py file itself. >> >> Anthony >> >> On Thursday, January 10, 2013 2:04:31 PM UTC-5, Andrew W wrote: >>> >>> Hi all, >>> >>> Did we prune some content out of the book on this ? I'm sure there was >>> more before. >>> >>> This is a line out of the Services chapter, talking about exactly what I >>> need to know: >>> "yet this is a matter of test and we have already discussed it at length >>> in chapter 4." >>> >>> But we haven't discussed it in Chapter 4. It's been removed !? >>> >>> Anyway, for my auth.wiki app, I don't want people to see this: >>> http://www.myweb2pywebsite.com/init/default/index/my_wiki_page >>> >>> I want them to see: >>> http://www.myweb2pywebsite.com/my_wiki_page, or maybe with the index >>> in there too. >>> >>> How do I do it ? >>> >>> P.S. If we mention Chapter numbers in the book, should we also include >>> them on the chapter index ? >>> >>> Thanks >>> Andrew W >>> >>> --