[Mediawiki-l] Pretty URLs with more than one wiki

Gary Kirk gary.kirk at gmail.com
Sat Apr 14 14:33:16 UTC 2007


Hi
My hosting provider uses cPanel.

I have three wikis set up to use pretty URLs and my .htaccess in public_html
is thus longer than most.
Here it is:

ErrorDocument 404 /notfound.php

AddHandler application/x-httpd-php5 .php .shtml

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^wiki/(.*) wiki/index.php?title=$1 [PT,L,QSA]
RewriteRule ^lab/(.*) labs/index.php?title=$1 [PT,L,QSA]
RewriteRule ^cgsb/(.*) cgsbwiki/index.php?title=$1 [PT,L,QSA]

RedirectMatch temp ^/learn$ http://moodle.xinki.org.uk

RedirectMatch permanent ^/wordpress$ http://blog.xinki.org.uk



I have an add-on domain to this and would like
http://myotherdomain.tld/wikito work; how would I set this up? I've no
idea.

-- 
Gary Kirk


More information about the MediaWiki-l mailing list