Sitemap-Multilang
is a Grav Plugin that generates a map of your pages in XML
format that is easily understandable and indexable by Search engines.
Installing the Sitemap plugin can be done in one of two ways. Our GPM (Grav Package Manager) installation method enables you to quickly and easily install the plugin with a simple terminal command, while the manual method enables you to do so via a zip file.
To install this plugin, just download the zip version of this repository and unzip it under /your/site/grav/user/plugins
. Then, rename the folder to sitemap-multilang
. You can find these files either on GitHub.
You should now have all the plugin files under
/your/site/grav/user/plugins/sitemap-multilang
NOTE: This plugin is a modular component for Grav which requires Grav, the Error and Problems plugins, and a theme to be installed in order to operate.
The sitemap-multilang
plugin works out of the box. You can just go directly to http://yoursite.com/sitemap
and you will see the generated XML
.
enabled: true
route: '/sitemap'
ignores:
- /blog/blog-post-to-ignore
- /ignore-this-route
You can ignore your own pages by providing a list of routes to ignore.
If you want your sitemap to only be accessible via sitemap.xml
for example, set the route to /sitemap
and add this to your .htaccess
file:
Redirect 301 /sitemap /sitemap.xml