Router::connect('/items/*', array('controller' => 'items', 'action' =>
'view'));
URLs like this are possible:
http://domain.com/items/slug-here
The problem, is that these are also valid pages that exactly duplicate the
above page:
http://domain.com/items/slug-here/unlimited
http://domain.com/items/slug-here/unlimited/duplicate
http://domain.com/items/slug-here/unlimited/duplicate/urls
What is the best way to address this issue so that there is not a duplicate
content problem?
In each controller action, I could check to see how many parameters were
passed, and if there are more than expected, redirect to a 404. Seems like
there should be a way to handle this in the routes.php file though.
--
View this message in context: http://n2.nabble.com/routing-%E2%80%94-duplicate-content-and-SEO-concerns-tp1605804p1605804.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment