on shared hosting , and all files lies in web-root directory -- /home/user-name/public_html
--
Edit these lines in Localsetting.php
$wgArticlePath = "/$1";and in .htaccess file (create if you do not have one)
$wgUsePathInfo = false;
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:
Post a Comment