|
How do I change my mediawiki url / path?
Category: Website Troubleshooting
|
|
Question Asked by axlesoft
How do I change my mediawiki url / path?
Best Answer not yet chosen
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.
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.
- Asked 2012-02-09 18:07
- Hits: 2196
- Expires in: Expired
This Question is Still Open! Current Answers:
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:
After updating this to:
... the issue with the username in the url has been resolved.
I hope that helps!
Thanks,
- Brad
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
2012-02-09 18:30
Rating:
Please log in to rate this question.
Like this Question?
Comments
Need more Help?
| Search
|
Current Customers
|
||||||||
Need more Website Troubleshooting help? Try browsing the standard Website Troubleshooting category page in our Knowledge Base. |
Not a Customer? |

Support Center Login
Have a question?
Comments
I had actually made that change (listed in the answer above) in your config file, tested a few pages in your wiki, and that seemed to have resolved the issue. Sounds like I missed a few pages in my testing?
Either way, glad to hear you were able to resolve the issue, and we really appreciate you posting the solution!
Thanks again!
- Brad
Didn't work, whole wiki goes down with an error message.
Fresh install and I found that
$wgScriptPath = "";
works. Maybe because the wiki is installed in /wiki, I really don't know.