How does MediaWiki implement Special: Allpages?

We could access all Mediawiki pages by URL ./wiki/Special:Allpages.

But there is no php file named Special:Allpages. How does MediaWiki implement it?

Thank.

+3
source share
1 answer

For a detailed explanation, see: http://www.mediawiki.org/wiki/Category:Wiki_page_URLs

However, here is an abridged version:

In Mediawiki, a URL is not a link to a specific page, such as a simple website. Instead, it is the key that the code uses to determine which page is displayed and to whom it is displayed.

PHP, . SomePage MyPage.php SomePage.php

, Mediawiki ( PHP-), .

Apache ModRewrite: http://www.mediawiki.org/wiki/Manual:Short_URL/Apache_Rewrite_rules

URL: http://www.mediawiki.org/wiki/Manual:Short_URL/LocalSettings.php

+5

Source: https://habr.com/ru/post/1764719/


All Articles