{"repo":"jekyll/jekyll-redirect-from","free":true,"listed":false,"github":"https://github.com/jekyll/jekyll-redirect-from","clone":"git clone https://github.com/jekyll/jekyll-redirect-from.git","description":":twisted_rightwards_arrows: Seamlessly specify multiple redirections URLs for your pages and posts.","language":"Ruby","stars":814,"topics":["jekyll","ruby","redirects","jekyll-plugin"],"license":"MIT","category":"docs-static-sites","readme_excerpt":"JekyllRedirectFrom Give your Jekyll posts and pages multiple URLs. When importing your posts and pages from, say, Tumblr, it's annoying and impractical to create new pages in the proper subdirectories so they, e.g. /post/123456789/my-slug-that-is-often-incompl , redirect to the new post URL. Instead of dealing with maintaining those pages for redirection, let jekyll-redirect-from handle it for you. How it Works Redirects are performed by serving an HTML file with an HTTP-REFRESH meta tag which points to your destination. No .htaccess file, nginx conf, xml file, or anything else will be generated. It simply creates HTML files. Installation Add this line to your application's Gemfile: gem 'jekyll-redirect-from' And then execute: $ bundle Or install it yourself as: $ gem install jekyll-redirect-from Once it's installed into your environment, add it to your config.yml : 💡 If you are using a Jekyll version less than 3.5.0, use the gems key instead of plugins . If you're using Jekyll in safe mode to mimic GitHub Pages, make sure to add jekyll-redirect-from to your whitelist: Then run jekyll --safe like normal. Usage The objective of this gem is to allow an author to specify multiple URLs for a page, such that the alternative URLs redirect to the new Jekyll URL. To use it, simply add the array to the YAML front-matter of your page or post: Redirects including a trailing slash will generate a corresponding subdirectory containing an index.html , while redirects without a trailing sl","default_branch":null,"files":null,"tree":[],"storefront":"/r/jekyll","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jekyll/jekyll-redirect-from/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}