Difference between revisions of "CentOS 7.x Generate mediawiki sitemap"

From Notes_Wiki
(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...")
 
m
Line 17: Line 17:
;https://www.sbarjatiya.com : is the mediawiki webserver name
;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:
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:
<pre>
<pre>
/sitemap/sitemap-index-notes_wiki.xml
/sitemap/sitemap-index-notes_wiki.xml

Revision as of 17:22, 29 January 2019

<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 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



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