Skip to content

Commit

Permalink
Merge pull request #827 from unepwcmc/trade-redirect
Browse files Browse the repository at this point in the history
Add in trade.cites.org redirect
  • Loading branch information
lucacug authored Feb 10, 2021
2 parents e4632eb + 5f1ffc4 commit 436053a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -295,10 +295,10 @@
# resources :products
# end

# root :to => 'cites_trade/home#index',
# :constraints => lambda { |request|
# request.domain(3) == 'trade.cites.org'
# }
get '/', :to => 'cites_trade/home#index',
:constraints => lambda { |request|
request.domain(3) == 'trade.cites.org'
}

# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
Expand Down

0 comments on commit 436053a

Please sign in to comment.