Skip to content

sitemap.xml filename is not variable #607

Closed
@riconeitzel

Description

If you'd like to have several sitemap files for google you can't name them differently:

sitemap-de.xml
sitemap-en.xml

as Magento always says:

Path "/sitemap-de.xml" is not available and cannot be used.

The reason is:

File: app/code/Magento/Backend/etc/config.xml:42

…
        <general>
            <file>
                <sitemap_generate_valid_paths>
                    <available>
                        <any_path>/*/sitemap.xml</any_path>
                    </available>
                </sitemap_generate_valid_paths>
            </file>
…

So the only valid filename is not "for example sitemap.xml" but "exactly sitemap.xml"

see Screenshot

Best,
Rico

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions