# Harkorede
<IfModule mod_rewrite.c>

RewriteEngine On
RewriteRule ^f/([0-9]+)/p/([0-9]+)/(.*).html$ forum/thread.php?fid=$1&p=$2 [L]
RewriteRule ^f/([0-9]+)/(.*).html$ /forum/thread.php?fid=$1 [L]

RewriteRule ^t/([0-9]+)/p/([0-9]+)/(.*).html$ forum/showthread.php?t_id=$1&p=$2 [L]
RewriteRule ^t/([0-9]+)/(.*).html$ /forum/showthread.php?t_id=$1 [L]

</IfModule>
ErrorDocument 404 /index.php
