Redirect Jekyll static webpage URI

A URI might change on your website for better indexing. But search engines will link to the old page leading to 404 error for many weeks on the old popular URI. Here’s how to make old AND new URIs work.

  1. add to _config.yml the stanza

     - jekyll-redirect-from
  2. on the page at the NEW URI, in the header of the file (between the ---) add

    redirect_from: /old-uri/


Jekyll redirect reference