Manual:$wgUsePathInfo

From mediawiki.org
This page is a translated version of the page Manual:$wgUsePathInfo and the translation is 86% complete.
URLs de servidor e caminhos de arquivo: $wgUsePathInfo
Se desejar usar URLs "bonitas".
Introduzido na versão:1.2.1
Removido na versão:ainda em uso
Valores permitidos:(booleano)
Valor padrão:(criado dinamicamente)

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.

Atenção Atenção: O item padrão $wgArticlePath será definido com base neste valor em tempo de execução, mas se você o tiver personalizado, tendo incorretamente definido-o como true, podem ocorrer loops de redirecionamento quando "URLs amigáveis​​" forem usadas.

Valor padrão

Versão MediaWiki:
1.38.2
Gerrit change 802960
$wgUsePathInfo = null;
Versões do MediaWiki:
1.2.1 – 1.37
$wgUsePathInfo = ( strpos( PHP_SAPI, 'cgi' ) === false ) &&
	( strpos( PHP_SAPI, 'apache2filter' ) === false ) &&
	( strpos( PHP_SAPI, 'isapi' ) === false );

Ver também