我想学习如何清理我的应用程序的URL.我的应用程序由Heroku上的Rails 3提供支持.
所需的URL为https://www.example.comite.com
我想将所有不同于上述URL的URL重定向到该URL.这是Rails还是DNS?
坏网址:
https://example.comite.com
http://www.example.comite.com
http://example.comite.com
如果后面有任何内容,比如http://www.example.comite.com/photo/1
,则url将被重定向为路径https://www.example.comite.com/photo/1