Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force Rails Heroku App from subdomain.herokuapp.com to apex domain?

What is the proper way to send a subdomain.herokuapp.com to the apex domain of the application? This is to avoid multiple domain names with the same content.

like image 248
Daniel Fischer Avatar asked Apr 25 '13 08:04

Daniel Fischer


1 Answers

https://github.com/tylerhunt/rack-canonical-host seems to be the perfect choice for this. Leaving it here for anyone else who has the same question.

like image 162
Daniel Fischer Avatar answered Oct 04 '22 22:10

Daniel Fischer