I'm looking to learn how to cleanup my app's URLs. My app is powered by Rails 3 on Heroku.
The desired URL is https://www.example.comite.com
I'd like to redirect all URLs unlike the above to that URL. Is this a Rails thing or DNS?
Bad URLs:
https://example.comite.com
http://www.example.comite.com
http://example.comite.com
And if anything is trailing, like http://www.example.comite.com/photo/1
for the url to be redirected with the path: https://www.example.comite.com/photo/1