Home›Support›English Support›[Resolved] The SEO Framework generates invalid URL for site map in robots.txt
[Resolved] The SEO Framework generates invalid URL for site map in robots.txt
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is using the directory for the default language, and the SEO Framework is incorrectly adding this default language directory to all sitemap links in robots.txt, resulting in invalid URLs. Solution: We recommend modifying the SEO Framework plugin code to correct the sitemap URLs: 1. Open the file located at
Please note this is a temporary workaround. We are awaiting a more comprehensive solution from the plugin author.
If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
Background of the issue:
I use the directory for the default language, and the SEO Framework adds this default language directory to all sitemaps links for the rest of the languages inside robots.txt. My robots.txt: Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link Sitemap: hidden link
Symptoms:
The SEO Framework generates invalid URLs for the sitemap in robots.txt.
Questions:
Why is the SEO Framework adding the default language directory to all sitemap links?
How can I configure the SEO Framework to generate correct sitemap URLs for each language?
Yes, the problem still exists, hidden link
in the robots.txt file link to de language sitemap is incorrect
Sitemap: hidden link
there is added /en/ before /de/
There is no problem with generating the actual site map, there is a problem with adding the correct link to the site map in the robots.txt file for translated languages
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
We’ve made a small adjustment to the workaround. Could you please try it again?
1. Open the file located at: `.../wp-content/plugins/autodescription/inc/classes/sitemap/registry.class.php`.
2. Locate line 173.
3. Replace the following line:
Please note that this is just a temporary workaround. We'll still need input from the plugin author to implement a more comprehensive solution, as they are responsible for the compatibility updates.