404 not found error after transferring database from live to local (docker)

Created on 20 May 2023, over 1 year ago

myproject.com/sitemap.xml works without problems on my live server.

I am using a local development environment with docker (docker desktop).
I had to transfer the drupal database of my project from live server to local dev (docker).

I am using 3 languages with url detection.

After importing the drupal database from live server into my local docker database I had to change the language detection on
/admin/config/regional/language/detection/url
because locally I am using .test domains:

myproject-com.test - EN
myproject-de.test - DE
myproject-at.test - AT

After this change my project runs locally without any problems. Language detection is also working.

I download the sitemap files (sites/default/files/xmlsitem/...).

But locally no sitemap is working!
myproject-com.test/sitemap.xml ---> error 404 not found
myproject-de.test/sitemap.xml ---> error 404 not found
myproject-at.test/sitemap.xml ---> error 404 not found

Still error 404 not found after clearing the cache, after rebuilding the sitemap, after running cron job.
No error in error logs.

What can I do? How can I find out what's causing the problem? How can I debug the missing sitemaps?
Thank you.

🐛 Bug report
Status

Closed: works as designed

Version

1.4

Component

xmlsitemap.module

Created by

🇦🇹Austria drupalfan2

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024