手册:$wgRedirectSources

From mediawiki.org
This page is a translated version of the page Manual:$wgRedirectSources and the translation is 40% complete.
跨wiki链接和站点: $wgRedirectSources
用于限制将显示为“重定向自”链接的 URL 的正则表达式。
引进版本:1.5.0
移除版本:仍在使用
允许的值:(正则表达式)或 false
默认值:false

细节

Other wikis which set $wgDisableHardRedirects to false may redirect users to pages of your wiki, telling your MediaWiki install from what URL they came from. Set this regular expression to restrict origin URLs which will be displayed as "redirected from" links to them.

It might look something like this:

$wgRedirectSources = '!^https?://[a-z-]+\.wikipedia\.org/!';

(For instance, this example configuration is pointless because Wikipedia doesn't have hard redirects enabled.)

Leave as false to avoid displaying any incoming redirect markers. This does not affect intra-wiki redirects, which don't change the URL.