How do I change my mediawiki url / path?


axlesoft
Asked:
2012-02-09 6:07 pm EST

Hits: 4,462
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:

wiki.example.com/~userxx/wiki

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.

OTHER ANSWERS

0

BradM
Staff
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 $wgScriptPath 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:

$wgScriptPath = "/~userxx/wiki";


After updating this to:

$wgScriptPath = "/wiki";


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

I hope that helps!

Thanks,
- Brad

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

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!