Wednesday, May 5, 2010

passing more parameters leads to duplicate content

Hi,

I currently have a SEO problem with CakePHP.

For example you have an "users"-controller with an action "register"
that is called by example.com/users/register. You can now add more
arguments to the URL e.g. example.com/users/register/my/duplicate/
content.

That's very bad for SEO because you can have unlimited duplicate
content. One solution (that isn't very good) is that you check the
parameter count in every function with func_num_args() and then 301
redirect to the correct URL. But that are at least two more lines in
every function and you manually have to enter the parameter count.

Does someone maybe have a better idea to solve this issue?

massl

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: