Skip to content

Instantly share code, notes, and snippets.

@julionc julionc/gist:4158704
Created Nov 28, 2012

What would you like to do?
Redirect to Www for Heroku With SSL
# Taken from
Bigbinary::Application.routes.draw do
constraints(:host => /^ do
root :to => redirect("")
match '/*path', :to => redirect {|params| "{params[:path]}"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.