# since index.pl exists
DirectoryIndex index.html
# DAV, override Limits
Order Allow,Deny
Allow from all
# for repeated leaching (billions of searches)
Deny from 202.108.
# ignoring nofollow
# Deny from 218.22.21.2 -- got mail from chenliang xu
Deny from 64.1.215.165
Deny from 65.55.209.
Deny from 38.99.44.104
Deny from 66.212.18.189
# note that specific bots are listed below in the rewrite area!
# Fast CGI
# AddHandler fastcgi-script fcg fcgi fpl
# about 0.5MB should be enough for requests (file uploads)
# LimitRequestBody 500000
# one hour should be enough (CPU time)
# RLimitCPU 2 4
# Resulted in tons of "Must be uid 0 to raise maximum RLimitCPU"
# errors
# about 50MB should be enough (reading log files and all that)
# RLimitMEM 50000000
# Disable all scripts by redirecting them to a message!
# RedirectMatch ^/cgi-bin/(alex|hug|ana|helmut|astrid|claudia|emacs|move|oddmuse|test|utis|paper|reflections|wiki) http://www.emacswiki.org/msg.html
# Trying to solve this problem: Request exceeded the limit of 10
# internal redirects due to probable configuration error. Use
# 'LimitInternalRecursion' to increase the limit if necessary. Use
# 'LogLevel debug' to get a backtrace.
# RewriteCond %{ENV:REDIRECT_STATUS} 200
# RewriteRule .* - [L]
# get rid of .pl extensions
RedirectMatch permanent /cgi-bin/([a-z-]*)\.pl(.*) http://www.emacswiki.org/cgi-bin/$1$2
Redirect permanent /cgi-bin/archive http://www.emacswiki.org/cgi-bin/emacs-archive
RedirectMatch permanent ^/cgi-bin/oddmuse([^.]*).* http://www.oddmuse.org/cgi-bin/oddmuse$1
RedirectMatch permanent ^/cgi-bin/claudia([^.]*).* http://www.orientalisch.info/cgi-bin/wiki$1
RedirectMatch permanent ^/cgi-bin/(community|cw)(.*) http://www.communitywiki.org/cw$2
# RedirectMatch permanent ^/cgi-bin/steffi.* http://www.emacswiki.org/cgi-bin/alex?Steffi
RewriteEngine on
RewriteCond %{QUERY_STRING} ^action=rss;full=1;diff=1$ [OR]
RewriteCond %{QUERY_STRING} ^action=rss;days=7;all=0;showedit=0;full=1;diff=1$
RewriteRule ^(wiki|emacs).* /emacs/full-diff.rss [L]
RewriteCond %{QUERY_STRING} ^action=rss;full=1$ [OR]
RewriteCond %{QUERY_STRING} ^action=rss;days=7;all=0;showedit=0;full=1$
RewriteRule ^(wiki|emacs).* /emacs/full.rss [L]
RewriteCond %{QUERY_STRING} ^action=rss;showedit=1$
RewriteRule ^(wiki|emacs).* /emacs/minor-edits.rss [L]
RewriteCond %{QUERY_STRING} ^action=rss$ [OR]
RewriteCond %{QUERY_STRING} ^action=rss;days=7;all=0;showedit=0$
RewriteRule ^(wiki|emacs).* /emacs/index.rss [L]
# banned user agents (bots)
RewriteCond %{HTTP_USER_AGENT} ^Yeti
RewriteRule ./ /banned_user_agent.html [L]
# favicon (I wonder who looks for it in the same directory?)
RewriteRule favicon\.(ico|gif) /favicon.ico [L]