|Whether to use 'pretty' URLs.
|Introduced in version:||1.2.1|
|Removed in version:||still in use|
|Default value:||(dynamically created)|
Details[edit | edit source]
Whether to use 'pretty' URLs (or Short URL), e.g.
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.
|Warning:||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.|
Default value[edit | edit source]
$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.
See Also[edit | edit source]
|Language:||English • français • 日本語|