Which 3×× redirection status code?

Hi,

So the context is I’m experimenting building a digital garden using Kirby.

I created a page /garden, under which I also created sub-pages:

  • /garden/blog
  • /garden/theme
  • /garden/format
  • /garden/episode

I created /garden/blog as a way to visually organize it in the digital garden, but functionally I don’t want my blog URL to be that.

So I installed the Retour plugin to redirect /garden/blog to /blog and I read through the different 3×× redirection HTTP status codes at the HTTP Status Codes Glossary, but I’m still unsure if I should be using:

  • 301 Moved permanently, or
  • 308 Permanent redirect, or even
  • 303 See other

Thanks for any advice!

301 if you want browser to always directly got to /blog (as they will remember the redirect) or 308 if you might change your mind in the future and want to make sure everyone checks /garden/blog first to see if it’s still redirecting.

1 Like