OUR BLOG

Thoughts on development, design and the world we live in.



Rack for Easy HTTP redirect

By sarah in Uncategorized. Posted on August 4th

We recently moved our class sign-up to EventBrite.  It used to be hosted on heroku with the subdomain classes.blazingcloud.net.  However, when we changed our DNS to direct to eventbrite, it didn’t end up targetting our eventbrite subdomain: blazingcloud.eventbrite.com — hitting the EventBrite homepage instead.  Rack to the rescue!

We set up another Heroku app with just a one-line rack application.  All it needed was a rackup config file, called “config.ru” with the following line:

and voila! It does a simple re-direct to the new site.

By sarah | Posted in Uncategorized | Comments (0)

Post a Comment

Your email is never shared. Required fields are marked *

*
*