Our URLs will be created by the user's content. Eg:


The "i went to baz" portion is user generated, included with the aim of being helpful to the person viewing the URL and also to possibly contain useful keywords for search engines.

However, the string that forms that portion is user editable. So it could become:


AFAICT the canonical URL should be:


The string portion is discarded by the controller, which means that there's potential for duplicate content from limitless URLs!

So, my question is, does it matter if my canonical URL is 'non SEO friendly'? It seems logical to me to provide search engines with the "id only" version of the URL which is always consistent, but the canonical URL is the one that appears in search results, so is there any benefit from trying to use more 'SEO friendly' URLs?

  • It is fine if canonical links change from time to time as long as use the canonical tag or redirect to the canonical version. This site and WordPress set the canonical URL to the full URL with keywords. The Drupal CMS takes the approach of the permalink being only the ID. – Stephen Ostermiller Sep 15 '17 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.