[Mediawiki-l] MediaWiki-l Digest, Vol 31, Issue 6

Colin Kaminski colinsk at pacbell.net
Wed Apr 5 15:39:01 UTC 2006


>> 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]

Is it possible to do this for all pages? Something like:

RewriteEngine on
RewriteRule ^/?$ /index.php?title=* [L,QSA]

Colin Kaminski




More information about the MediaWiki-l mailing list