Re: MediaWiki-l Digest, Vol 31, Issue 6

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: MediaWiki-l Digest, Vol 31, Issue 6

Colin Kaminski
>> 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

_______________________________________________
MediaWiki-l mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Reply | Threaded
Open this post in threaded view
|

Re: MediaWiki-l Digest, Vol 31, Issue 6

Rob Church
On 05/04/06, Colin Kaminski <[hidden email]> 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 mailing list
[hidden email]
http://mail.wikipedia.org/mailman/listinfo/mediawiki-l