I’ve decided to move away from ryanonrails.com and move over to ryanjones.io. When I first picked ryanonrails.com it seemed like a clever play on Ruby on Rails (it was clever, right?), but throughout time it’s grown old.
On that note, I wanted to make sure that none of my old links died off. I quickly threw together this sinatra app hosted on Heroku to make sure that the urls are redirected correctly.
This small sinatra app will take anything after the url and forward it over to the new domain you’ve defined. I went with a 301 (permanent) to keep my SEO up, however you could go for a 302 (temporary) if you’re only setting this up temporarily.
1 2 3 4 5 6 7
Drop these 2 files in a directory, bundle install and then run rackup.