These methods require that you have access to the server configuration. If you are on a shared host, you most likely don't. In this case you will be required to use a method that requires "no root access". You can jump directly to the MediaWiki ShortURL Builder tool and follow the on screen instructions after clicking on "I don't have root access".
Recommendation from MediaWiki ShortURL Builder: These instructions can be used to configure the wiki at http://hmipedia.org/index.php?title=Halaman_Utama with the article path "/wiki/$1" giving you urls like http://hmipedia.org/wiki/Main_Page. If you want a different article path you can fill in a new one here Article Path:/wiki/$1
/.htaccess RewriteEngine On RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
/LocalSettings.php
- The URL base path to the directory containing the wiki;
- defaults for all runtime URL paths are based off of this.
- For more information on customizing the URLs please see:
- http://www.mediawiki.org/wiki/Manual:Short_URL
$wgScriptPath = ""; $wgScriptExtension = ".php"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true;
- To enable image uploads, make sure the 'images' directory
- is writable, then set this to true:
$wgEnableUploads = true; $wgGenerateThumbnailOnParse = false;
Server type: Apache Path to index.php:/index.php
Mediawiki version:MediaWiki 1.24 (upgrade from 1.20)
After edit and safe of .htaccess and LocalSettings.php, mywiki generate url like this http://hmipedia.org/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/wiki/Wiki/Halaman_Utama
After refresh page some times, my wiki becomes blank page. I deleted .htaccess and revert back LocalSettings.php my wiki can be accessed again http://hmipedia.org/index.php?title=Halaman_Utama.
I am not sure about this. Am I wrong in implement those guide? Thanks for your help.