Category Archives: Computers

MediaWiki PassThroughFile Extension Version 1

MediaWiki recommends against using the top level of a domain to load wiki pages from. If only a section of the site contains a wiki, http://example.com/wiki/Main_Page makes sense. MediaWiki supports this. If the entire site is a wiki, then http://example.com/Main_Page makes sense. MediaWiki does not support this, and recommends against it.

The problem with the latter is that it renders files such as robots.txt as a wiki page at http://example.com/Robots.txt. This can be avoided by using MediaWiki’s extensions capability.

To get around this issue, I wrote an extension.

Continue reading