Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sitemap url scheme in robots.txt #91

Open
flyalex opened this issue Feb 9, 2018 · 1 comment
Open

Sitemap url scheme in robots.txt #91

flyalex opened this issue Feb 9, 2018 · 1 comment

Comments

@flyalex
Copy link

flyalex commented Feb 9, 2018

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')

@tweakker
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants