CentOS 7.x Generate mediawiki sitemap
Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > CentOS 7.x Generate mediawiki sitemap
Mediawiki contains maintenance script to generate sitemap. Sitemaps are useful in submitting to online search engines so that they can crawl the site in easy manner.
https://www.mediawiki.org/wiki/Manual:GenerateSitemap.php has information on how to use the maintenace script.
Example invocation is:
cd /documents/public_html/notes_wiki php maintenance/generateSitemap.php --fspath=/documents/public_html/sitemap/ --urlpath=https://www.sbarjatiya.com/sitemap/ --server=https://www.sbarjatiya.com --compress=yes
Here,
- /documents/public_html/notes_wiki
- is the location where LocalSettings.php file for mediawiki is located. The maintenance subfolder is inside this folder
- /documents/public_html/sitemap/
- is the path outside the mediawiki base folder where sitemap should be generated
- https://www.sbarjatiya.com/sitemap/
- is the URL which can allow access to files inside /documents/public_html/sitemap/ over web
- https://www.sbarjatiya.com
- is the mediawiki webserver name
After this open http://search.google.com/search-console (or http://www.google.com/webmasters/tools) and submit the sitemap for your site for consideration by google. In above example sitemap URL to submit to google for www.sbarjatiya.com site would be:
/sitemap/sitemap-index-notes_wiki.xml
Home > CentOS > CentOS 7.x > Web Based Tools > Mediawiki > CentOS 7.x Generate mediawiki sitemap