History: SiteMap
Source of version: 21 (current)
Copy to clipboard
!! How to use the sitemap feature New in ((Tiki18)): A built-in site map XML generator: https://sourceforge.net/p/tikiwiki/code/63719 Revamped in ((Tiki23)) by replacing deprecated [https://packagist.org/packages/evert/sitemap-php|sitemap-php] by [https://packagist.org/packages/melbahja/seo|melbahja/seo] {QUOTE(replyto="Google" source_url="https://developers.google.com/search/docs/crawling-indexing/sitemaps/overview")}A sitemap is a file where you provide information about the pages, videos, and other files on your site, and the relationships between them. Search engines like Google read this file to crawl your site more efficiently. A sitemap tells Google which pages and files you think are important in your site, and also provides valuable information about these files. For example, when the page was last updated and any alternate language versions of the page.{QUOTE} In tiki, to generate the sitemap of your site, go to __control panels__ / __general preferences__ page / __navigation tab__. After activation, you can select 'sitemap' in the tools menu or visit: __tiki-admin_sitemap.php__ Clicking on 'rebuild sitemap' will generate two xml files (sitemap.xml, sitemap-index.xml). {REMARKSBOX(type="information" title="Note")}if you have articles, a forum and a blog on your site, you will also generate xml files to take into account these different parts of your application{REMARKSBOX} The sitemap-index.xml file will look like this: {CODE()} <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> <sitemap> <loc> http://example.org/storage/public/sitemap.xml </loc> <lastmod>2017-09-26</lastmod> </sitemap> </sitemapindex> {CODE} You can now submit your sitemap-index.xml to Google. Submitting your new sitemap is free. You must go to [https://search.google.com/search-console/about ] for sending your sitemap.The documentation explaining how to do it can be found [https://support.google.com/webmasters/answer/7451001?hl=en#zippy=%2Cenvoyer-un-sitemap|here ] !! Launch from the command line In command line you need to have admin access to the CLI,then go to the root of your application. run : {CODE(caption="Replace http://wikisuite.org with your domain name" theme="default")}# php console.php sitemap:generate http://wikisuite.org New sitemap created. {CODE} the submission and results will be the same as if you did it with the GUI The result is here: http://wikisuite.org/storage/public/sitemap.xml !! Related * See ((Search engine optimization)) for existing documentation on all the current SEO facilities and the site map feature in particular.