Hello Guys,
I am having an EntitiesController with an action view which expects the uid
as a parameter(uid of the entity to be viewed). I have created a route in
the configuration file for this situation like:
Router::connect('/:entity_uid', array('controller' => 'entities', 'action'
=> 'view'),
array('pass'=>array('entity_uid')));
so that urls look like http://x.com/<entity_uid>
instead of http://x.com/entities/view/<entity_uid>
but some how search engine seems to have indexed the second form i.e
http://x.com/entities/view/<entity_uid> which is problematics since it can
see two urls pointing to the same page.
Now i am thinking that the default route be given a permanent redirect to
http://x.com/<entity_uid> but out of ideas on how to accomplish that. Please
help.
I am using the cake build 1.2.3.8166.
--
Thanks & Regards,
Novice.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---