Mediawiki/urls

De josalba
Ir a la navegación Ir a la búsqueda

Urls amigables en media wiki.
.htaccess

RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME}		!-f
RewriteCond %{REQUEST_FILENAME}		!-d
RewriteRule (.*)			index.php/$1 [QSA,PT,L]
RewriteRule ^/*$			index.php [QSA,PT,L]

LocalSettings.php

$wgArticlePath = "/$1";
$wgUsePathInfo = true;