Manual:$wgUsePathInfo
From MediaWiki.org
| Paths: $wgUsePathInfo | |
|---|---|
| Whether to use 'pretty' URLs. |
|
| Introduced in version: | 1.2.1 |
| Removed in version: | still in use |
| Allowed values: | (boolean) |
| Default value: | (dynamically created) |
Other settings: Alphabetical | By Function
[edit] Details
Whether to use 'pretty' URLs, e.g. index.php/Page_title
Note: These often break when PHP is set up in CGI mode. PATH_INFO *may* be correct if cgi.fix_pathinfo is set, but then again it may not; lighttpd converts incoming path data to lowercase on systems with case-insensitive filesystems, and there have been reports of problems on Apache as well. To be safe we'll continue to keep it off by default in these instances.
Override this to false if $_SERVER['PATH_INFO'] contains unexpectedly incorrect garbage, or to true if it is really correct.
| The default $wgArticlePath will be set based on this value at runtime, but if you have customized it, having this incorrectly set to true can cause redirect loops when "pretty URLs" are used. |
[edit] Default value
$wgUsePathInfo = ( strpos( php_sapi_name(), 'cgi' ) === false ) && ( strpos( php_sapi_name(), 'apache2filter' ) === false ) && ( strpos( php_sapi_name(), 'isapi' ) === false );
Note that prior to 1.9.0, only 'cgi' was checked for.
[edit] See Also
| Language: | English • Français • 日本語 |
|---|