Extension:SuppleRedirect

The  extension provides a way to replace red links to redirect other site automatically if find same title on other sites by MediaWiki REST API (1.35+).

And set redirect automatically on new page also.

It useful to divide your site or build new sites.

Permanently redirect
If you want to redirect permanently (e.g. using to divide your site), add this variable to LocalSettings.php.

By default (if not set), may be used 307 Temporary Redirect.

Exclude some titles
If you want to exclude some titles, you can set $wgSuppleRedirectExcludes on LocalSettings.php as follows.

You must set uppercase the first character because of MediaWiki's restriction.

But you may not restricted with $wgCapitalLinks = false.

Timeout
This extension timed out 60 seconds by default to call MediaWiki Rest API.

We recommend to set shorten &quot;default_socket_timeout&quot; on php.ini as possible.

Create new page
This extension replace red links automatically if same article provided on other site worked MediaWiki.

If you want to create a new page, open the full URL with redirect=no. for example: https://yourwiki.example.com/index.php?redirect=no&title=New_article e.g. on wikitext: [ Create "new article" on this site]

Namespace problems
This extension works only workspaces NS_MAIN or $wgContentNamespaces.

This extension may meet problems being caused by translation in several namespaces (except NS_MAIN) and languages. details see here. (in Japanese)

Miscellaneous
This extension not affect by $wgInvalidRedirectTargets.