How to configure my MediaWiki to be accessible via the server URL instead of my own domain name?

You can access your MediaWiki via the server URL (http://servername/~user) instead with your domain, by modifying the LocalSettings.php file located in the installation directory of the application.

You can edit the file using File Manager in cPanel, or via FTP.

For example, if you've installed MediaWiki under public_html/wiki directory, when you open the LocalSettings.php file, make sure that you modify the following line:

from:

$wgScriptPath= "/wiki"

to:

$wgScriptPath= "/~username/wiki"

and

$wgServer = "http://yourdomain.com";

to

$wgServer = "http://servername";

Then you can use the following URL to access your MediaWiki:

http://servername/~username/wiki/

where username is your cPanel user and servername is the server where your account is hosted. They are listed in your User Area -> My Accounts -> Information & Settings.

You need help with an application? SiteGround is specialized in hosting and supporting more than 200 scripts. Sign up for our web hosting services and let us help you with your application, 24/7!