InMotion Hosting Support Center

How do I change my mediawiki url / path?

2012-02-09 6:07 pm EST

Hits: 5,483
I ported an existing MediaWiki site to inmotion and got it working on the temporary URL.

Now I have the real site up and running, it works ok but the URLs are:

Anyone know what to edit (LocalSettings.php?) to get my user name out of the URL. It works but its a bit ugly.

You must login before you can ask a follow up question.

You must login before you can submit an answer.



5,399 Points
2012-02-09 6:30 pm EST
Hi axlesoft,

To remove your cPanel username from your mediawiki url, you'll need to update the <strong>$wgScriptPath</strong> setting in your LocalSettings.php file.

I took a quick look at your LocalSettings.php file, and I saw that you had this setting in place:

<div class='code_block'>$wgScriptPath = "/~userxx/wiki";</div>

After updating this to:

<div class='code_block'>$wgScriptPath = "/wiki";</div>

... the issue with the username in the url has been resolved.

I hope that helps!

- Brad

You must login before you can post a comment about this answer.

Like this Question?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!