You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And then after the second command, for --section site_2, has completed, all domains change in the index XML file, the content of the urlset https://2.example.com/sitemap.site_2.xml is correct, it has the correct base URL:s for all locations. But the index XML changes all URL:s.
And then after the second command, for --section site_3, has completed, all domains change in the index XML file, the content of the urlset https://3.example.com/sitemap.site_3.xml is correct, it has the correct base URL:s for all locations. But the index XML changes all URL:s.
Now, to where the error occurs, when starting over with the commands, e.g. the next day to periodically regenerate the files, the new one gets added on top of the previous ones:
How to reproduce
I think the full description above should do it.
Possible Solution
Maybe tag each <sitemap> in the index XML with the specific section, such as <sitemap id="site_1"> instead and use that to identify whether or not to update/add to the file?
Additional Context
n/a
The text was updated successfully, but these errors were encountered:
PHP version(s) affected: 8.1.13
Package version(s) affected: 3.3.0
Description
With a Symfony 5.4-based application, multiple sites with separate domains share a
/public
directory. For example:For each of these sites we run the following command (manually or via cron)
Now, after the first command for
--section site_1
has been completed the XML is updated as expected:And then after the second command, for
--section site_2
, has completed, all domains change in the index XML file, the content of the urlset https://2.example.com/sitemap.site_2.xml is correct, it has the correct base URL:s for all locations. But the index XML changes all URL:s.And then after the second command, for
--section site_3
, has completed, all domains change in the index XML file, the content of the urlset https://3.example.com/sitemap.site_3.xml is correct, it has the correct base URL:s for all locations. But the index XML changes all URL:s.Now, to where the error occurs, when starting over with the commands, e.g. the next day to periodically regenerate the files, the new one gets added on top of the previous ones:
How to reproduce
I think the full description above should do it.
Possible Solution
Maybe tag each
<sitemap>
in the index XML with the specific section, such as<sitemap id="site_1">
instead and use that to identify whether or not to update/add to the file?Additional Context
n/a
The text was updated successfully, but these errors were encountered: