MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: MediaWiki Site - Redirect problem.  (Read 3477 times)

0 Members and 1 Guest are viewing this topic.

Offline Dipak Bhoi

  • MilesWeb Team Member
  • Full Member
  • ***
  • Posts: 208
  • Karma: +5/-0
    • View Profile
    • MilesWeb Internet Services
MediaWiki Site - Redirect problem.
« on: September 12, 2014, 02:55:25 PM »
Hello guys,

One of our customer was facing a problem with his MediaWiki site which was redirecting to other URL. We did check all suspected things like .htaccess file Rules, database redirection or suspicious files but no luck with that. After a bit dip investigating on it, I found the exact problem.

The problem was with the file LocalSettings.php under public_html directory of that account. There is a variable $wgScriptPath which was redirecting site to another URL. Below are the steps to fix this issue.

1. Login to your server via SSH
2. Go to public_html directory of your account and edit file LocalSettings.php using vim editor.

Quote
#cd /home/username/public_html
#vi LocalSettings.php

3. Now find for Variable $wgScriptPath in file. Check the value define to that variable, it should be like as below.

Quote
$wgScriptPath = "";

4. If you found any other value set to this variable as below then set it as above.

Quote
$wgScriptPath = "http://anyotherurl.com";

5. That's it. You are done.

Enjoy !!

« Last Edit: September 12, 2014, 07:54:52 PM by Administrator »
MilesWeb.com
cPanel Hosting in India - cPanel Hosting in India.

Grab an SSL for your website and SAVE 20% now. Coupon Code SSLSAVE20.

MilesWeb Hosting Forum

MediaWiki Site - Redirect problem.
« on: September 12, 2014, 02:55:25 PM »