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

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -