Skip to content

Instantly share code, notes, and snippets.

@stevenklise
Created November 4, 2011 23:46
Show Gist options
  • Save stevenklise/1340812 to your computer and use it in GitHub Desktop.
Save stevenklise/1340812 to your computer and use it in GitHub Desktop.
URL rewrites
require "rack/jekyll" # Jekyll on Rack
require "rack/rewrite" # Rewrites on Rack
use Rack::Rewrite do
rewrite '/feed/', '/feed/index.xml' # target url, current url
end
run Rack::Jekyll.new # run the Jekyll app on Rack
source 'rubygems'
gem 'rack/jekyll'
gem 'rack/rewrite'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment