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

前端 未结 3 1482
迷失自我
迷失自我 2020-12-30 15:54

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.

3条回答
  •  温柔的废话
    2020-12-30 16:26

    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.

提交回复
热议问题