I've got a client who is reporting that unwanted dynamic URLs for static pages are appearing in Google Webmaster Tools. This means that content is being duplicated as far as Google in concerned. How would these dynamic URLs get created (if not deliberately), and how can I prevent this happening again?
1 Answer
Assuming you've eliminated any links that are being generated by your templates, the bad URLs could come from old Google results, external links, user bookmarks, sent emails, anything really.
You'll need to attack this from two routes:
Adding 301-redirects for old URIs. Detour Pro add-on is the best way to manage these, otherwise you end up with a very long, ugly, hard-to-debug htaccess file.
Ensuring that requests for non-existent URIs return a 404 header. You can do this with conditionals using EE's
redirect
tag and thechannel entries
tag'sno_results
variable andrequire_entry
parameter. This can get fiddly depending on your tag nesting, but many third-party add-ons supply their ownprefix
parameter or similar that allows them to use their ownno_results
variable.
Here's another answer with a good overview: Strange URLs appeared in Webmaster tools