• Resolved Nazar78

    (@nazar78)


    Hi,

    I noticed in the documentation there was a change long ago to use post_date_gmt instead of post_date and there were some fix later on related to GMT/local time offset.

    But it seems that WP is using post_date? I got 404 error on one of my sitemap, local page as 2021-01 but GMT as 2020-12 so 2021-01 returned 200 but 2020-12 got 404 error.

    I temporarily fixed this by modifying only all the year/month queries/clauses in the sitemap-builder.php to use post_date i.e. YEAR(p.post_date) and MONTH(p.post_date).

  • The topic ‘Local vs GMT 404 Error’ is closed to new replies.