A 301 redirect is a permanent redirection of one URL to another.
Rel=”canonical” – This element is added to the head of the page, and suggests to the search engine, “ignore this ugly URL, and instead only look at this pretty URL.” It looks like this: <link rel=”canonical” href=”www.example.com" />