跳过导航

標籤: 

本主题包含 0 則回覆 ,有 1 嗓音 。

最后由 gabrielS-32 9 months前 更新。

协助者:: Nicolas V..

作者 文章
5 9 月, 2024 于 2:27 下午

gabrielS-32

Background of the issue:
We have a multisite setup per country, with each country having its own set of languages. We are using a setting where even the default language appears in the site URL. For example, the URL for the USA site looks like: 隐藏链接 for English and 隐藏链接 for Spanish. When I open the sitemap by URL 隐藏链接, I see that the post and pages sitemaps are leading to a 404 page. The URLs there do not contain the language code. When I manually change the sitemap URLs in the browser to contain the language code, it works well. Here is the link to a page where the issue can be seen: 隐藏链接

Symptoms:
The post and pages sitemaps are leading to a 404 page because the URLs do not contain the language code. Instead of 隐藏链接, the URL is 隐藏链接, which leads to a 404 page.

Questions:
Why are the sitemap URLs not including the language code?
How can I ensure that the sitemap URLs include the language code?

5 9 月, 2024 于 3:10 下午