Making MeidaWiki urls seo friendly
Posted on November 8, 2009 with No Comments
Open LocalSettings.php
Find
$wgArticlePath = "$wgScript/$1";
Replace with
$wgArticlePath = "/$1";
Now create .htaccess file with following content
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]
Thats all. Now your media wiki installation have seo friendly url.
Tags: mediawiki, seo friendly, seo url
Category: Web