Manual:$wgUsePathInfo/pt-br
From Linux Web Expert
<translate> Server URLs and file paths</translate>: $wgUsePathInfo | |
---|---|
Se desejar usar URLs "bonitas". |
|
<translate> Introduced in version:</translate> | 1.2.1 |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (booleano) |
<translate> Default value:</translate> | (criado dinamicamente) |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Detalhes
Se desejar usar URLs "bonitas" (ou URLs curtas), ou seja, index.php/Page_title
Elas freqüentemente falham quando o PHP é configurado em modo CGI.
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. Para maior segurança, vamos continuar a mantê-lo desligado por padrão nesses casos.Substitua este item para false se $_SERVER['PATH_INFO']
contiver inesperadamente texto incorreto, ou para true se for realmente correto.
It's highly recommended to set its value in LocalSettings.php to prevent inconsistencies between web requests and scripts run from the command line, where the value may change between them.
Valor padrão
<td class="mw-version-versionbox" title="<translate nowrap> The latest stable version is <tvar name=1>1.41</tvar></translate>"><translate> ≥</translate> 1.38.2
Gerrit change 802960<translate> MediaWiki version:</translate> |
$wgUsePathInfo = null;
1.2.1 – 1.37
<translate> MediaWiki versions:</translate> |
$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
( strpos( PHP_SAPI, 'isapi' ) === false );