Options -Indexes
RewriteEngine on

DirectoryIndex index.php

RewriteRule ^archiver/((fid|tid)-([0-9]+)(|-page-([0-9]+))\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$3&page=$2
RewriteRule ^space-(username|uid)-(.+)\.html$ space.php?$1=$2
RewriteRule ^tag-(.+)\.html$ tag.php?name=$1
RewriteRule ^player.html$ player.php

RewriteCond %{HTTP_HOST} ^www\.tfrkl\.com [NC]
RewriteRule (.*) http://tfrkl.com/$1 [R=301,L]

RewriteCond %{HTTP_REFERER} !tfrkl.com/.*$ [NC]
RewriteRule \.(jpg|jpeg|gif|png|bmp|rar|zip|mp3|wma|wav|mid)$ - [F]