Automatically add keywords to Mediawiki pages

Meta keywords are considered as good search engine optimization technique and still there are few search engines relaying on it. However, Mediawiki does not have any built-in mechanism to generate meta keywords automatically. Webmasters usually fix this issue by making some changes to Mediawiki core, which can create problems in future.

There are few popular extensions available for this purpose, but most of them require adding special keywords in the article, filling up a new form, running a cron job, creating special entries in database etc.One of the major disadvantage of these extensions are the requirement of putting extra content in the article. All users may not understand/use this feature, they might get removed during edits. Malicious users can put non-related keywords in the page this way, which can affect SEO.

AutoKeywords is an extension which dynamically adds meta keywords according to page title and categories along with a specific set of keywords.

Here's what you need to do to make use of this cool extension:

  1. Download AutoKeywords zip file and extract it to the extensions/ directory.
  2. Add the line require_once( "$IP/extensions/AutoKeywords/AutoKeywords.php" );  to LocalSettings.php
  3. Specify general keywords to be used for all articles by adding the line $CommonKeywords = "bbroy,technology,blog";  to LocalSettings.php.
and we are done.



Just check the source of any wiki page from browser and you will be able to find the new keywords.

You can see demo of this extension at: Secpedia: OWASP Bricks

Related: Automatically add meta description tag to Mediawiki pages

Popular posts from this blog

How to rip Audio CD with VLC