redirect URI with Jekyll static webpage

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

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

     redirect_from: "/old-uri"
    

Reference

Tags:

Categories:

Updated:

Leave a Comment