Menu

10 March 2008

Solved - Mediawiki short url configuration

Hi, I am Using

on shared hosting , and all files lies in web-root directory -- /home/user-name/public_html

--
Edit these lines in Localsetting.php
$wgArticlePath      = "/$1";
$wgUsePathInfo = false;
and in .htaccess file (create if you do not have one)

AddHandler application/x-httpd-php5 php
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -l
RewriteRule ^(.+) /home/lugiitd/public_html/$1 [L]
RewriteRule ^/*$ /index.php?title=Main_Page [L,QSA]
RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA]

This work well for me, fully tested , after a hardwork of 6 hours -- hope my effort will be utilized somewhere, --

No comments: