DocumentRoot "/usr/local/apache/common/docroot/foundation" ServerName wikimediafoundation.org AllowEncodedSlashes On # Some additional CGI scripts # for donation tracking... # ScriptAlias /cgi-bin/ "/home/wikipedia/cgi-bin/wikimediafoundation.org/" ScriptAlias /cgi-bin/ "/usr/local/apache/common-local/cgi-bin/wikimediafoundation.org/" RewriteEngine On # extract.php pages redirected to new pages RewriteRule ^/fundraising(\.html)?$ /wiki/Fundraising [R=301,L] RewriteRule ^/index(\.html)?$ /wiki/Home [R=301,L] RewriteRule ^/GNU_FDL(\.html)?$ /wiki/GNU_Free_Documentation_License [R=301,L] # Obsolete PDF redirected to current wiki page # Redirect added -- bv 2009-01-09 RewriteRule ^/bylaws\.pdf http://wikimediafoundation.org/wiki/Wikimedia_Foundation_bylaws [R,L] #RewriteRule ^/fr/(.*)$ /extract_fr.php?title=$1 [L] # FIXME this is dangerous php_admin_flag engine on # Primary wiki redirector: Alias /wiki /usr/local/apache/common/docroot/foundation/w/index.php RewriteRule ^/$ /w/index.php # UseMod compatibility URLs RewriteCond %{QUERY_STRING} ([^&;]+) RewriteRule ^/wiki\.cgi$ /w/index.php?title=%1 [R=301,L] RewriteRule ^/wiki\.cgi$ /w/index.php [R=301,L] RewriteRule ^/math/(.*) http://upload.wikimedia.org/math/$1 [R=301] php_admin_flag engine on php_admin_flag engine off Options Indexes FollowSymlinks FollowSymlinks AddType text/plain .html .htm .shtml # vim: syn=apache sts=4 sw=4 autoindent