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-0.xml not loading #4442

Closed
nickumia-reisys opened this issue Sep 1, 2023 · 5 comments
Closed

sitemap-0.xml not loading #4442

nickumia-reisys opened this issue Sep 1, 2023 · 5 comments
Assignees
Labels
bug Software defect or bug component/catalog Related to catalog component playbooks/roles UI/UX

Comments

@nickumia-reisys
Copy link
Contributor

How to reproduce

  1. Visit https://catalog.data.gov/sitemap/sitemap-0.xml

Expected behavior

image

Actual behavior

image

Sketch

Investigate the indexing number of the sitemap code. Maybe one of the loops starts at 1 and the other loop starts at 0?

@nickumia-reisys nickumia-reisys added the bug Software defect or bug label Sep 1, 2023
@nickumia-reisys
Copy link
Contributor Author

Google couldn't fetch it either:

image

@btylerburton
Copy link
Contributor

all sitemaps are 404'ing now

@btylerburton btylerburton self-assigned this Sep 14, 2023
@btylerburton
Copy link
Contributor

btylerburton commented Sep 14, 2023

EDIT: The fix below was for other sitemaps beyond sitemap-0.xml

Sitemaps are fixed by reverting the location change...

This is best understood as

location = /foo {} exact match for /foo
vs
location /foo {} is a general match for something which includes path /foo and will be superceded by a block with greater specificity, or will be chosen if there's no other specificity

Background: https://www.digitalocean.com/community/tutorials/nginx-location-directive#3-nginx-location-block-for-a-directory

@FuhuXia
Copy link
Member

FuhuXia commented Sep 14, 2023

It starts with sitemap-1.xml. There is never a sitemap-0.xml.

File sitemap.xml upload complete to: https://.../sitemap.xml
Sitemap index upload complete to: https://.../sitemap.xml
1 to 10000 of 380944 records done.
done with sitemap/sitemap-1.xml.
...

@FuhuXia
Copy link
Member

FuhuXia commented Sep 19, 2023

/sitemap/sitemap-0.xml is receiving bot traffic.

@FuhuXia FuhuXia closed this as completed Sep 19, 2023
@nickumia-reisys nickumia-reisys added component/catalog Related to catalog component playbooks/roles UI/UX labels Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Software defect or bug component/catalog Related to catalog component playbooks/roles UI/UX
Projects
Status: 🗄 Closed
Development

No branches or pull requests

3 participants