eastbaydsa / majority

MIT License
0 stars 1 forks source link

Make URLs unique #36

Open wesholing opened 5 years ago

wesholing commented 5 years ago

Currently, the slug is appended to just the domain: https://eastbaymajority.com/new-post

As we create more content, though, we won't be able to use the same slugs. This poses two potential issues:

  1. Once a slug is used by one story, we can't use it again.
  2. It limits our ability to use SEO-friendly keywords, which boosts organic search.

Sites like Jacobin and The Intercept use year and month or year, month, and date (respectively). They also use slugs that are just relevant keywords, not the title with hyphens. (e.g. https://jacobinmag.com/2019/01/bernie-sanders-elizabeth-warren-democratic-primary-baffler-amber-frost)

I'd recommend we do the same, something like https://eastbaymajority.com/2019/02/new-post or https://eastbaymajority.com/new-post-20190229.

If we do that, we should also create 301 redirects for existing pages.

wesholing commented 5 years ago

This appears to be the primary plugin for handling 301 redirects within WordPress. https://wordpress.org/plugins/redirection/

maxlapides commented 5 years ago

Redirection is a great plugin but it won't work for us. We need to do this through Netlify.

wesholing commented 5 years ago

Sounds good.