-----Message d'origine----- De : mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] De la part de Philip Beach Envoyé : mercredi 25 avril 2007 20:25 À : MediaWiki announcements and site admin list Objet : [Mediawiki-l] PS re: move wiki redirect
Hello all,
Regarding my previous email...
If there is a way to get MediaWiki to ignore a certain directory "under" it then I don't even need to set up this redirect. For example, I want MediaWiki to stay at www.mywiki.com but want to be able to use to directory www.mywiki.com/classroom for a CMS.
Is it possible to do this without moving the MediaWiki install to www.mywiki.com/wiki and setting up a complex redirect?
Thanks!
You can setup an Alias in Apache (if you use that) Alias /wiki/ "/path/to/www/mywiki_root_dir/" for example
"Les informations contenues dans ce message électronique peuvent être de nature confidentielles et soumises à une obligation de secret. Elles sont destinées à l'usage exclusif du réel destinataire. Si vous n'êtes pas le réel destinataire, ou si vous recevez ce message par erreur, merci de le détruire immédiatement et de le notifier à son émetteur."
"The information contained in this e-mail may be privileged and confidential. It is intended for the exclusive use of the designated recipients named above. If you are not the intended recipient or if you receive this e-mail in error, please delete it and immediately notify the sender."
johan.boye-oKsH17/Ij6b985uAA1p3mw@public.gmane.org wrote :
You can setup an Alias in Apache (if you use that) Alias /wiki/ "/path/to/www/mywiki_root_dir/" for example
or in your case, you can create your classroom directory in some place (other than mediawiki folder) and create its alias
Alias /classroom/ /path/to/classroom/ Alias /classroom /path/to/classroom/
this will make the Apache server to use mediawiki folder when typing www.mywiki.com and use /path/to/classroom/ when typing www.mywiki.com/classroom/ or www.mywiki.com/classroom. So you don't have to move your mediawiki install into some ./wiki folder
BTW, to create redirects you can create an index.php in the old folder and in that index.php you use php function header(). Like header( "Location: http://www.mywiki.com" ); which is an instant redirect or header('Refresh: 5; url=http://www.mywiki.com'); which allow you to display some message (like "our url has changed, you will be redirected") during 5 seconds before redirection
mediawiki-l@lists.wikimedia.org