 Having multiple URLs for the same web content can cause problems for search engines - specifically in determining which URL should be shown in search results.Most search engines support the Canonical link element as a hint to which URL should be treated as the true version.As indicated by John Mueller of Google, having other directives in a page, like the robots noindex element can give search engines conflicting signals about how to handle canonicalization 

Example