Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Numinix MediaWiki Demo
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Manual/Short URL
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Moving a wiki from <tvar name=1>/wiki</tvar> to <tvar name=2>/w</tvar> == <!--T:98--> </translate> <translate><!--T:99--> A common beginner's mistake is to install MediaWiki itself (the source code, not the short URL) in <tvar name=1><code>/wiki</code></tvar> instead of <tvar name=2><code>/w</code></tvar>.</translate> <translate><!--T:100--> Once installed they would realize the mistake when trying to configure Short URLs (which would become difficult as the virtual path then conflicts with the real path).</translate> <translate> <!--T:101--> There is a manual for [[<tvar name=1>Special:MyLanguage/Manual:Moving a wiki</tvar>|moving a wiki]] in general, however that is too complicated if all you need is to change the installation directory (and stay on the same server, same database and same hostname). <!--T:102--> Here is what you have to do: <!--T:103--> * Backup <tvar name=1><code>LocalSettings.php</code></tvar> and any other config files you may have created (such as your <tvar name=2><code>.htaccess</code></tvar>).</translate> <translate> <!--T:104--> * Rename the installation directory of MediaWiki on your server from <tvar name=1><code>/wiki</code></tvar> to <tvar name=2><code>/w</code></tvar>.</translate> <translate> <!--T:105--> * Set <tvar name=1><code></code></tvar> in <tvar name=2><code>LocalSettings.php</code></tvar> to <tvar name=3><code>"/w"</code></tvar> and remove (or comment out) any definition of <tvar name=4><code>$wgArticlePath</code></tvar> (this variable will be changed again when setting up Short URLs, further on)</translate> <translate> <!--T:106--> * At this point your wiki should be working normally at <tvar name=1><code>example.org/w</code></tvar></translate> <translate> <!--T:107--> * Now go through [[<tvar name=guides>#Guides</tvar>|the regular guide]] to set up short URLs</translate> <translate> <!--T:108--> * Perform a few tests on your wiki to make sure nothing is broken.</translate> <translate><!--T:109--> Edit a page, visit a few different pages, etc.</translate> <translate><!--T:110--> If anything seems abnormal, revert the changes by restoring your backup of <tvar name=1><code>LocalSettings.php</code></tvar> and other relevant files you might have changed during configuration of short URLs and rename your folder back to <tvar name=2><code>/wiki</code></tvar>.</translate> <translate><!--T:111--> '''Note for shared hosting users:''' Many shared hosting plans offer an application manager to automatically Install, Update and Backup applications such as MediaWiki.</translate> <translate><!--T:112--> If your plan has this and if you want to keep using these features, you should contact their tech support and let them know you just manually changed your MediaWiki installation directory.</translate> <translate>
Summary:
Please note that all contributions to Numinix MediaWiki Demo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)