#! -*- mode:apache-conf-generic -*-
Order Allow,Deny
Allow from all
Deny from 84.19.180.57
Deny from 208.109.254.194
Deny from 208.36.144.10
Deny from 220.194.55
# about 50MB should be enough (reading log files and all that)
# but only works for Apache 2.0 in .htaccess
# RLimitMEM 50000000
# C-x h M-| wikiput -u AlexSchroeder -s "update" "http://www.communitywiki.org/en/.htaccess"
RedirectMatch permanent ^/[-a-z]*password http://www.emacswiki.org/pwd.html
RedirectMatch permanent ^/[a-z]*/visitors http://www.emacswiki.org/visitors.html
RedirectMatch permanent ^/cw-([a-z][a-z].*) http://www.communitywiki.org/$1
RewriteEngine on
RewriteRule ^favicon.ico /pics/favicon.png [last,type=image/png]
# http://www.communitywiki.org/
RewriteRule ^$ /cgi-bin/cw.pl [last]
# http://www.communitywiki.org/green.css
# http://www.communitywiki.org/pics/
# http://www.communitywiki.org/pics/Community.png
RewriteCond %{REQUEST_FILENAME} -f [ornext]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .* - [last]
# http://www.communitywiki.org/cw/rss
# http://www.communitywiki.org/cw/atom
RewriteRule ^cw/rss /cgi-bin/cw-en.pl?action=rss [last]
RewriteRule ^cw/atom /cgi-bin/cw-en.pl?action=atom [last]
# http://www.communitywiki.org/cw/HowTo
RewriteRule ^cw(.*) /cgi-bin/cw.pl$1 [last]
# http://www.communitywiki.org/de/HowTo
# http://www.communitywiki.org/de/
# http://www.communitywiki.org/de
# http://www.communitywiki.org/de/raw/HowTo (ist allerdings unnuetz)
RewriteRule ^(de|en|fr)/(.+) /cgi-bin/cw-$1.pl/$2 [last]
RewriteRule ^(de|en|fr)/?$ /cgi-bin/cw-$1.pl [last]
# http://www.communitywiki.org/odd
# http://www.communitywiki.org/odd/
# http://www.communitywiki.org/odd/Setup
# Lock oddwiki
# RewriteRule ^odd(.*) /problem.html [last]
RewriteRule ^odd/?$ /cgi-bin/odd.pl [last]
RewriteRule ^odd(.*) /cgi-bin/odd.pl$1 [last]
# http://www.communitywiki.org/raw/HowTo
# http://www.communitywiki.org/HowTo
RewriteRule ^(.+)$ /cgi-bin/cw.pl/$1 [last]
AddDefaultCharset utf-8