Loading...
 
Skip to main content

History: SiteMap

Preview of version: 14

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 sitemap-php by melbahja/seo

The sitemap protocol is located in the 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).

The sitemap-index.xml file will look like this:

Copy to clipboard
<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>

You can then submit the sitemap-index.xml file to Google Sitemaps.

This uses https://packagist.org/packages/evert/sitemap-php

Launch from the command line

Replace http://wikisuite.org with your domain name
Copy to clipboard
# php console.php sitemap:generate http://wikisuite.org New sitemap created.


The result is here: http://wikisuite.org/storage/public/sitemap.xml

How to use the sitemap feature in tiki 9.x

New in Tiki 9.2
This helps to submit a sitemap.txt file with links to be indexed to search englines like Google.

Basically, what it does if you uncomment the line in .htaccess (and set it to your own category ID) is rewriting for example this:

Copy to clipboard
https://doc.tiki.org/tiki-browse_categories.php?find=&deep=on&type=wiki+page&parentId=1&sort_mode=name_asc&links&maxRecords=1000000


into this:

Copy to clipboard
https://doc.tiki.org/sitemap.txt


Live demo: https://doc.tiki.org/tiki-browse_categories.php?find=&deep=on&type=wiki+page&parentId=1&sort_mode=name_asc&links&maxRecords=1000000
Related commits: See https://sourceforge.net/p/tikiwiki/code/43100




History

Advanced
Information Version
Eutyche ODIMBA 21
Eutyche ODIMBA 20
Eutyche ODIMBA 19
Eutyche ODIMBA 18
Eutyche ODIMBA 17
Eutyche ODIMBA 16
Marc Laporte 9.x is long gone 15
Marc Laporte 14
Marc Laporte 13
Marc Laporte 12
Marc Laporte code Plugin modified by editor. 11
Marc Laporte Launch from the command line 10
Marc Laporte 9
Benoit Roy 8
Benoit Roy 7
Marc Laporte 6
Marc Laporte 5
luciash d' being 🧙 4
Marc Laporte 3
Geoff Brickell 2
Marc Laporte 1