firestorm icon indicating copy to clipboard operation
firestorm copied to clipboard

Support canonicalizing URLs for SEO friendliness

Open knewter opened this issue 8 years ago • 1 comments

From a slack discussion:

dpehrson [9:54 AM] @josh If you go that direction, make sure you include <link rel="canonical"/> tags on all those pages, and better yet force 301 redirects on each of those :show actions to ensure people get redirected to the canonical URL.

We need something that knows the canonical URL for a given controller action and redirects to it - that way if you access a category by ID, and there's a usable slug, we can redirect to the sluggy version. If we do that we don't need link rel="canonical"

knewter avatar Mar 17 '17 14:03 knewter

Hi I would like to help with this.

I've read a couple of examples HashRocket's tilex: blogpost commit

Elixircasts: Video/Code Example

Both lack IDs, I'm guessing we want to use a hash or id on the seo-friendly url for resilency to edits/updates of slug?

agustif avatar Apr 04 '17 06:04 agustif