It isn’t all that easy to create a good mediawiki site with URL rewrite (you know… hide the “index.php” part and make it all pretty looking like “YourDomain.ext_/wiki/_“), So here I put down a step by step method of going through this cumbersome process.
-
QuickInstall mediawiki in a directory in your public_html folder. Say, in folder “wiki“. (Now, your mediawiki installation is in “YourDomain.ext/wiki/” but yet, when you go to YourDomain.ext, you aren’t redirected to anywhere (like going to en.wikipedia.org redirects you to en.wikipedia.org/wiki/). So now,
-
Add this to the .htaccess file in public_html to redirect your root folder link to the subfolder in which wiki is installed. (So now, when you enter YourDomain.ext, it takes you to YourDomain.ext/wiki)
RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.ext$
RewriteRule ^(/)?$ wiki [L]