wilinckx wrote:
On Sun, 02 Apr 2006 23:29:43 +0200 Tomasz Chmielewski mangoo@wpkg.org wrote:
With MediaWiki installed in the root of the webserver, whenever a visitors enters http://server, he/she is automatically redirected to http://server/index.php/Main_Page, and "Main_Page" is displayed.
Is it possible to configure Mediawiki, so that when a visitor enters http://server, he sees MainPage, but in the address bar, he still sees http://server (no, no frames etc., just display "Main_Page" when someone enters http://server)?
Yes, by using a .htaccess file. In your specific case, create this file in the directory where index.php is in. Don't forget the starting dot in the filename. Add the following lines to .htaccess :
RewriteEngine on RewriteRule ^/?$ /index.php?title=Main_Page [L,QSA]
ps: If you would have installed mediawiki in a subdir, it should look like this: RewriteRule ^/?$ /thesubdirectoryofmediawiki/index.php?title=Main_Page [L,QSA]
ps: Apache need to have mod_rewrite enabled, and .htaccess enabled too. Instead of using .htaccess files, you can also edit the main Apache configuration files if you have access to it.
Thanks, that was it!