Manual:$wgSearchForwardUrl

From MediaWiki.org
Jump to: navigation, search
This page is a translated version of the page Manual:$wgSearchForwardUrl and the translation is 20% complete.

Other languages:
English • ‎日本語 • ‎polski
Search: $wgSearchForwardUrl
Set this to a URL to forward search requests to some external location.
導入されたバージョン: 1.4.0
除去されたバージョン: 使用中
可能な値: URL 文字列
既定値: null
他の設定: アルファベット順 | 機能順

詳細[edit]

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.