-
-
Notifications
You must be signed in to change notification settings - Fork 99
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
Multilanguage and sitemaps not properly supported #127
Comments
Here's an example code to allow Multilanguage and sitemaps in the robots.txt file for django-robots:
This view generates a robots.txt file that disallows nothing (i.e., allows all robots) and includes the sitemap URL(s) using the Sitemap directive. The build_absolute_uri() method is used to generate a full URL for the sitemap view. You can modify the content variable to suit your needs, for example, if you want to include multiple sitemaps, you can include multiple Sitemap` directives separated by newlines. |
Google and other search engines just look for the robots.txt file on the root directory.
That means that the robots.txt for the non-default language is being ignored. ie:
http://example.com/fr/robots.txt
So, the default behavior should be that the robots.txt files ignore any language configuration so they appear on the root file and all the sitemaps should be included on the robots.txt of the root.
Note: I found you allow the developers to change the settings so I can add the sitemaps by myself, and having the robots.txt on the folders won't hurt my SEO, it is just unnecessary. I am just letting you know because probably many developers using the app without figuring this out. By the way, thank you for the nice tool.
The text was updated successfully, but these errors were encountered: