Manual:$wgUsePathInfo
Jump to navigation
Jump to search
URLs and file 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 |
Details[edit]
Whether to use 'pretty' URLs (or Short URL), e.g. index.php/Page_title
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.
Default value[edit]
$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
( strpos( PHP_SAPI, 'isapi' ) === false );