sitemap.xml not being generated
Closed this issue · 5 comments
sonicfive commented
Meta tags are being generated, but not an XML file for the sitemap. I am using the examples provided, but the file is not being generated. I would appreciate your help.
mmikkel commented
Can you share your config/seomate.php
file?
sonicfive commented
Sure!, thanks for helping.
return [
'defaultProfile' => 'standard',
'fieldProfiles' => [
'standard' => [
'title' => ['title'],
'description' => ['seoDescription', 'summary'],
'image' => ['seoImage', 'mainImage']
],
],
'sitemapEnabled' => true,
'sitemapLimit' => 100,
'sitemapConfig' => [
'elements' => [
'news' => ['changefreq' => 'weekly', 'priority' => 1],
'projects' => ['changefreq' => 'weekly', 'priority' => 0.5],
'frontpages' => [
'elementType' => \craft\elements\Entry::class,
'criteria' => ['section' => ['homepage', 'newsFrontpage', 'projectsFrontpage']],
'params' => ['changefreq' => 'daily', 'priority' => 1],
],
],
],
];
mmikkel commented
@sonicfive The config looks legit, at a glance.
To be clear, the sitemap should be available via https://yourdomain.com/sitemap.xml
.
Specifically what happens when you visit that URL?
sonicfive commented
It was available all along when visiting https://yourdomain.com/sitemap.xml
My bad. I was expecting there to be an actual sitemap.xml in the root folder.
Thanks for the help!
mmikkel commented
No problem @sonicfive – good to hear it's working!