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

Wrong sitemap.xml url in robots.txt in multi language setups #124

Open
olach opened this issue Dec 16, 2024 · 0 comments
Open

Wrong sitemap.xml url in robots.txt in multi language setups #124

olach opened this issue Dec 16, 2024 · 0 comments
Labels
type: bug 🐛 Is a bug; fixes a bug
Milestone

Comments

@olach
Copy link
Contributor

olach commented Dec 16, 2024

I have a website with two languages using the default Kirby setup where the language code is prefixed on all url:s.

www.example.com/sv/
www.example.com/en/

This causes problems with the generated sitemap url in /robots.txt.

In the /robots.txt, the sitemap url is generated as follows:

Sitemap: https://www.example.com/sv/sitemap.xml

This url generates a 404. The correct url should be:

Sitemap: https://www.example.com/sitemap.xml

For my site, I have solved this temporarily by setting the sitemap url manually in config. But it would be great if your otherwise fantastic plugin could handle this natively.

@tobimori tobimori modified the milestones: 1.2.0, 2.0.0 Dec 16, 2024
@tobimori tobimori added the type: bug 🐛 Is a bug; fixes a bug label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Is a bug; fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants