强制Rails Heroku应用程序从subdomain.herokuapp.com到apex域名? [英] Force Rails Heroku App from subdomain.herokuapp.com to apex domain?

查看:91
本文介绍了强制Rails Heroku应用程序从subdomain.herokuapp.com到apex域名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将subdomain.herokuapp.com发送到应用程序的顶点域的正确方法是什么?这是为了避免具有相同内容的多个域名。

https://github.com/tylerhunt/rack-canonical-host 似乎是这个的最佳选择。把它留在这里给其他有相同问题的人。

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.

解决方案

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.

这篇关于强制Rails Heroku应用程序从subdomain.herokuapp.com到apex域名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆