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
On 05/04/06, Colin Kaminski colinsk@pacbell.net wrote:
Is it possible to do this for all pages? Something like:
RewriteEngine on RewriteRule ^/?$ /index.php?title=* [L,QSA]
Yes, but see http://meta.wikimedia.org/wiki/Using_a_very_short_URL.
Rob Church
mediawiki-l@lists.wikimedia.org