class WelcomeController < ApplicationController
  layout 'home'

  def index
  end
end

class WelcomeController < ApplicationController
  layout 'home'

  def index
    if request.host == 'activities.fairwoodexplorer.org'
      redirect_to 'http://apps.fairwoodexplorer.org/activities'
    elsif request.host == 'walkathon.fairwoodexplorer.org'
      redirect_to 'http://apps.fairwoodexplorer.org/walkathon'
    end
  end
end

Add top-level redirects to /activities and /walkathon if a user's url is activities.fairwoodexplorer.org or walkathon.fairwoodexplorer.org
Add top-level redirects to /activities and /walkathon if a user's url is activities.fairwoodexplorer.org or walkathon.fairwoodexplorer.org
