CentOS 7.x Generate mediawiki sitemap

From Notes_Wiki
Revision as of 17:03, 29 January 2019 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb self="Generate mediawiki sitemap=>CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb> =CentOS 7.x Generate mediawiki sitemap= Mediawiki contains maintenance s...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb self="Generate mediawiki sitemap=>CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>

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 search.google.com/search-console 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



<yambe:breadcrumb self="Generate mediawiki sitemap=>CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>