Buy at Flipkart

Flipkart.com

Friday, September 10, 2010

Beautifying Wiki URL(s)

Recently, I started helping my sister for developing geetshabda . The site (project) aims to build the largest repository of information on music in local languages in India and especially Marathi - to begin with.

Due to this, I decided to get my hands dirty into MediaWiki.  Below tips should help you in setting up clean URL(s) for your media-wiki installation on GoDaddy.

    * When testing these instructions, be sure to launch a new browser instance to prevent browser caching from hiding the latest configuration changes.

[edit] .htaccess
Create .htaccess in wiki installation directory (with GoDaddy File Manager or by FTP) with this content:

RewriteEngine On
RewriteRule ^wiki/(.*)$ /index.php?title=$1 [PT,L,QSA]
RewriteRule ^wiki/*$ /index.php [L,QSA]
RewriteRule ^/*$ /index.php [L,QSA]

[edit] LocalSettings.php

Add the following to the end of LocalSettings.php (in Subdomain directory):

# SHORT URLS:
$wgScriptPath = ""; # Path to the actual files
$wgArticlePath = "/wiki/$1"; # Virtual path

It may be necessary to set $wgUsePathInfo to true with this code:

$wgUsePathInfo = true;

Thursday, January 7, 2010

Best Programming Quote Ever.

It should be noted that no ethically-trained software engineer would ever consent to write a DestroyBaghdad procedure. Basic professional ethics would instead require him to write a DestroyCity procedure, to which Baghdad could be given as a parameter.

-Nathaniel_Borenstein

Posted via web from nishantmodak's posterous