Phile plugin to generate a XML sitemap
composer require phile/xmlsitemap- Install Phile
- Download this repo and drop the content into a new folder
phile/xmlsitemapunder the Phile plugin directory e.g.plugins/phile/xmlsitemap/
After you have installed the plugin. You need to add the following line to your config.php file:
$config['plugins']['phile\\xmlsitemap'] = array('active' => true);Now, you can access the sitemap under the URL http://your-domain.com/sitemap.xml. If you installed Phile into a subdirectory your sitemap.xml is located under your subdirectory/sitemap.xml.