[code language=”ruby”]
constraints(:host => "test.xploralab.com") do
root to: redirect("https://test.xploralab.com/dealers")
end

constraints(:host => "admin.speed-dealing.com") do
root to: redirect("https://admin.speed-dealing.com/admins")
end
[/code]