View Single Post
  #1 (permalink)  
Old 03-21-2008, 09:42 AM
dimitri dimitri is offline
Junior Member
 
Join Date: Mar 2008
Posts: 1
Default removeDefaultRoutes() points non-existing routes to index?

Hello,

In my ZF project, I use some alternate routes. This works fine, however the default route for this is still active. For example, mysite.com/dj_tiesto is exactly the same as mysite.com/artists/details/id/10 and mysite.com/artists/details?id=10.

This means there are different links pointing to one location. As I don't want to do this, I thought removeDefaultRoutes() would do the trick. Indeed only mysite.com/dj_tiesto is the only route pointing to the right location, but the other links (which should be non-existing routes by now since the default routes are gone) point to my index page??

I want to return a 404 on these links instead of returning the index. Is this a bug, or does anyone have another idea about how to solve this problem?

Thanks in advance!
Reply With Quote