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
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<yambe:breadcrumb self="Generate mediawiki sitemap=>CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Generate mediawiki sitemap]]
=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.
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.
Line 17: Line 16:
;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
Line 25: Line 24:




<yambe:breadcrumb self="Generate mediawiki sitemap=>CentOS_7.x_Mediawiki|Mediawiki</yambe:breadcrumb>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 7.x]] > [[CentOS 7.x Web Based Tools|Web Based Tools]] > [[CentOS 7.x Mediawiki|Mediawiki]] > [[CentOS 7.x Generate mediawiki sitemap]]

Latest revision as of 09:18, 25 August 2022

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