django-robots icon indicating copy to clipboard operation
django-robots copied to clipboard

Sitemap url scheme in robots.txt

Open flyalex opened this issue 7 years ago • 1 comments

Hi,

I use https on project. In my robots.txt file I cant get sitemap url to have https scheme.

In site admin I have domain name without scheme, and name with https scheme. Even if both have no scheme, I have sitemap url with http. ROBOTS_USE_SCHEME_IN_HOST = True How can I setup sitemap to hame https?

(but sitemap looks proper with protocol = 'https')

flyalex avatar Feb 09 '18 21:02 flyalex

You can use this trick in your config: ROBOTS_SITEMAP_URLS = ['https://yoursite.com/sitemap.xml']

tweakker avatar Mar 15 '18 05:03 tweakker