use one of the following patterns:1) front controller2) filter chainboth works very well, you can use any other kind ofcontroller to be able to responde to any url pattern.