Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^captcha.gif$ /captcha/index.php?mode=GIF [L]
RewriteRule ^captcha.jpg$ /captcha/index.php?mode=JPG [L]
RewriteRule ^country.gif$ /geoip/index.php?mode=GIF [L]
RewriteRule ^fortune.gif$ /fortune/index.php?mode=GIF [L]
RewriteRule ^wherefrom.jpg$ /whowhere/index.php?mode=JPG [L]
RewriteRule ^gfyrss$ /gfyrss/index.php [L]
RewriteRule ^gfyrss.xml$ /gfyrss/index.php [L]
RewriteRule ^channel([0-9]+)\.gif /xmsig/index.php?mode=GIF&channel=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
RewriteRule ^(.*) index.php
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*) index.php
RewriteCond %{HTTP:Authorization} !^$
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
What? I try to keep shit fairly clean, but I have some legacy crap.