taverasmisael / taverasmisael.com

My personal website and blog. Build with an hybrid Astro SSR, SolidJS and TailwindCSS. Support for internazionalization and more.
https://taverasmisael.com
2 stars 0 forks source link

Make old blog redirects permanent redirects #19

Closed taverasmisael closed 1 year ago

taverasmisael commented 1 year ago

I decided to redirect old links to the new links (i.e., blog/some-post => [lang]/blog/some-post) if an entry is found with that slug.

So far, this is one of the best decisions because the traffic keeps coming, and users do not see a 404, but it is time to make those redirect permanent (301 instead of 302).

taverasmisael commented 1 year ago

This is the file and line in question: src/pages/[...slug].astro#21