ruby on rails - Remove herokuapp sub domain -
i`m developing apps , hosting them on heroku
there problem indexing website
if publish top level domain there conflict between heroku sub domain , main one, search engines index both
for example if domain
something.com
and heroku sub domain
something.herokuapp.com
what should delete heroku sub domain , make visible on main one?
thank you
it not possible right now. heroku proposes implement 301 redirect in such case. because don't have access configuration of web server or proxy on heroku side, option implement in application code.
this information specified here:
your app’s heroku domain remain active, if you’ve set custom domain. if want users use custom domain exclusively, app should send http status 301 moved permanently tell web browsers use custom domain. host http request header field show domain user trying access; send redirect if field example.herokuapp.com.
Comments
Post a Comment