Clean URLs with mod rewrite and php as CGI
From WikiLinks
Here's your public_html/wiki/.htaccess:
cat .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /wiki/index.php?title=$1 [L,QSA]
And here's the one change I made in your LocalSettings.php:
## If using PHP as a CGI module, use the ugly URLs
$wgArticlePath = "$wgScriptPath/$1";
#$wgArticlePath = "$wgScript?title=$1";
And now all of the non-hardcoded index.php URLs work fine
As found here TextDrive forum via this topic
Other useful URL's
