Mediawiki seo friendly urls htaccess

Inleiding

   

Change in localsettings:

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

Stappen

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 http://www.drinkkiwiki.net)

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

Reacties (0)

Reageer
Geen resultaten gevonden