Mediawiki seo friendly urls htaccess



Change in localsettings:

$wgScriptPath       = "";
$wgArticlePath = "/$1";


Make a .htaccess file and put the following in:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?title=$1 [L,QSA]

Risico's en Tips

  • If you have a URL like 'index.php/Maintitle',

if should put $wgUsePathInfo = false; into local settings (thanx to Veli

  • If you screw up your site you have to upload an EMPY .htaccess file and then try again!

Reacties (0)

Geen resultaten gevonden