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] # show the stuff in / as /new/* RedirectMatch temp ^/new$ http://openbox.org/new/ RewriteRule ^new/?$ new/home.php [L] RewriteRule ^new/(.*)$ $1 [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 # serve the wiki on / RewriteRule ^$ wiki [L] # wiki/ shortcut for the old wiki site RewriteRule ^wiki/?$ oldwiki/index.php?title=Main_Page [L,QSA] RewriteRule ^wiki/(.+)$ oldwiki/index.php?title=$1 [L,QSA] RedirectMatch temp ^/git/([^/]+/)(.*)$ http://git.openbox.org/?p=$1openbox.git;a=commitdiff;h=$2