Skip to content

Commit

Permalink
Redirect railsdogradio.com requests
Browse files Browse the repository at this point in the history
  • Loading branch information
schof committed Mar 16, 2011
1 parent 2e79fd7 commit 2b0b0b1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
RailsdogRadio::Application.routes.draw do
# redirect railsdogradio.com to the demo subdomain
constraints(:host => /railsdogradio.com/) do
root :to => redirect("http://demo.spreecommerce.com")
match '/*path', :to => redirect {|params| "http://demo.spreecommerce.com/#{params[:path]}"}
end

root :to => "homepage#show"

# overriding default state for custom checkout steps
Expand Down

0 comments on commit 2b0b0b1

Please sign in to comment.