[Django]-Indexing a heroku site on google

1👍

I have the problem that it does not let me index my urls, it tells me that it has not been able to obtain data and less with a sitemap

👤NADXUS

1👍

Google generally doesn’t allow a sub domain into its services. I think a heroku app with heroku sub domain cannot be indexed. Possible if have your own domain.

1👍

You can index your app in Heroku subdomain using Google Search Console.

  1. Go to Google Search Console and click Start Now.
  2. Since you don’t have a DNS and the website is hosted on heroku with herokuapp.com subdomain, switch to the URL PREFIX tab.
  3. Enter you website’s address, e.g. https://example.herokuapp.com and click continue.
  4. Now, there are number of verification methods. But I prefer to insert the meta tag in the home page of the website. So, copy the HTML meta tag and insert it in your website(don’t forget to update the app).
  5. After updating your app, go back to the page and click on verify.

Leave a comment