We needed to dynamically control the URLs we re-write to... So the biggest change is to hook URLrewriter into our Content Management System (home grown) so that it gets the rewrite rules from our database instead of a config file.
We essentially have 2 requirements for URLrewriting: 1) requests for a 'pretty URL' (i.e., one that is essentially 'virtual' in our system) get pointed to the proper dynamic page in our CMS. 2) requests for an 'ugly URL' (i.e., one that is the actual path to the dynamic page - which includes a page ID or content ID in the URL) get rewritten (with a 301 "permanent" redirect) to a friendly URL if one exists. This is to provide SEO support for our "pretty URLs"... So, if a user requests: https://www.wizard101.com/game/myfriendlyurl They would get the content that actually goes with: https://www.wizard101.com/home2/game/001231jasf012312310123 (I made that up, but 'home2' is actually the Tapestry template, and it gets the dynamic content for a content item designated by "game/001231jasf012312310123" from our database...) Or, a request for: https://www.wizard101.com/home2/game/001231jasf012312310123 Gets a 301 (permanently moved) redirect to: https://www.wizard101.com/game/myfriendlyurl (This last bit is because search engines score click-throughs based on the path, and we may have people out in the web somewhere who have linked to our old path, but we don't want to lose the SEO ranking for click-throughs to our new path... So it _must_ be a 301 redirect, or the old path gets the higher ranking for the click-through instead of our new 'friendly' URL... If we have multiple scoring URLs that point to the same page, the page will essentially be downgraded in score because click-thru traffic will be split between the different paths.) -- Robin D. Wilson Director of Web Development KingsIsle Entertainment, Inc. CELL: 512-426-3929 DESK: 512-623-5913 www.KingsIsle.com -----Original Message----- From: Thiago H. de Paula Figueiredo [mailto:thiag...@gmail.com] Sent: Wednesday, February 17, 2010 10:06 AM To: Tapestry users Subject: Re: What websites are using Tapestry 5? On Wed, 17 Feb 2010 13:51:28 -0200, Robin D. Wilson <rwils...@gmail.com> wrote: > cluster on tomcat 6.0.20, Sun JDK 1.6. We also use URLrewriter, but we > modified it heavily to use our CMS database to get the new > paths. What exactly have you modified in the URL rewriting support? I'm curious about it. It can inspire us to improve our framework. :) -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, software architect and developer, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org