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