RewriteEngine On RewriteBase / # help.php is the wiki RewriteCond %{QUERY_STRING} ^(.+)$ RewriteRule ^help.php$ mediawiki/index.php?title=%1 [L,QSA] RewriteCond %{QUERY_STRING} ^$ RewriteRule ^help.php$ mediawiki/index.php?title=Help [L,QSA] # wiki is stuck in a subdirectory, let it reference these things directly RewriteRule ^mediawiki/css/(.*)$ css/$1 [L] RewriteRule ^mediawiki/images/(.*)$ images/$1 [L] RewriteRule ^mediawiki/h/(.*)$ h/$1 [L] # use home.php as the root RewriteRule ^$ home.php [L] # old folders #RewriteRule ^releases(.*)$ dist/openbox$1 [L] RedirectMatch permanent ^/releases(.*)$ http://openbox.org/dist/openbox$1 #RewriteRule ^obconf(.*)$ dist/obconf$1 [L] RedirectMatch permanent ^/obconf(.*)$ http://openbox.org/dist/obconf$1