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

Include the absolute URL to the sitemap in the robots.txt file #633

Merged
merged 1 commit into from May 18, 2024

Conversation

FBruynbroeck
Copy link
Contributor

Description of change

In the robots.txt file, the value of the sitemap field is a relative URL.
This should be changed to an absolute URL.
See protocol: https://sitemaps.org/protocol.html#submit_robots

For example, in the Google search console, this error message appears when it's a relative url:

"Invalid sitemap URL" incomprehensible syntax

I think it would be interesting to have a default sitemap field in the right format using root_url.

What do you think of this change?

@vsalvino vsalvino added this to the 4.0 milestone May 18, 2024
@vsalvino vsalvino merged commit f57cd69 into coderedcorp:main May 18, 2024
8 of 10 checks passed
@vsalvino
Copy link
Contributor

Good catch, thanks!

@vsalvino vsalvino modified the milestones: 4.0, 3.0.4 May 18, 2024
vsalvino pushed a commit that referenced this pull request May 18, 2024
In the robots.txt file, the value of the sitemap field is a relative
URL.
This should be changed to an absolute URL.
See protocol: https://sitemaps.org/protocol.html#submit_robots

For example, in the Google search console, this error message appears
when it's a relative url:

> "Invalid sitemap URL" incomprehensible syntax

I think it would be interesting to have a default sitemap field in the
right format using `root_url`.
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

Successfully merging this pull request may close these issues.

None yet

2 participants