手册:$wgSearchForwardUrl

This page is a translated version of the page Manual:$wgSearchForwardUrl and the translation is 30% complete.
搜索: $wgSearchForwardUrl
Set this to a URL to forward search requests to some external location.
引进版本:1.4.0
移除版本:仍在使用
允许的值:(URL字符串)
默认值:null

详情

Set this to a URL to forward search requests to some external location. If the URL includes '$1', this will be replaced with the URL-encoded search term. For example, to forward to Google you'd have something like:

$wgSearchForwardUrl = 'http://www.google.com/search?q=$1' .
                      '&domains=http://example.com' .
                      '&sitesearch=http://example.com' .
                      '&ie=utf-8&oe=utf-8';

You also need to set $wgDisableTextSearch = true; or $wgSearchForwardUrl is ignored.

From versions 1.4.8 to 1.4.15, this setting was incorrectly named $wgForwardSearchUrl in DefaultSettings.php. If you are using one of those versions then this alternative name should be used instead.