To canonicalize a URL, you must add a canonical tag to the non-canonical page.  This tells the search engines to ignore the non-canonical page and favor the canonical one instead.