Kicking the tires on divshot.com with my middleman blog. I moved it over from Heroku, which uses rack to handle URL redirects/rewriting. I'm trying to duplicate some of that behavior on divshot, which uses HTML5 pushState (superstatic) instead.
I have multiple domains that I want to redirect to 1 domain, and I want to redirect all www.
requests directly to http://example.com (rather than http://www.example.com).
Is there anyway to do this?
there are a few ways to tackle this: