htaccess
RewriteEngine on
RewriteRule ^tor/([0-9]+)$ tor.php?id=$1
RewriteRule ^det/([0-9]+)$ det.php?id=$1
RewriteRule ^rep/([0-9]+)$ rep.php?id=$1
RewriteRule ^get/([0-9]+)/(.*)$ get.php?id=$1&filename=$2
RewriteRule ^q/([0-9]+)$ q.php?id=$1
RewriteRule ^q/(.*)$ q.php?title=$1
RewriteRule ^cat/([0-9]+)$ cat.php?id=$1
RewriteRule ^cat/([0-9]+)/$ cat.php?id=$1
RewriteRule ^cat/$ cat.php
RewriteRule ^cat-list/([0-9]+)$ cat-list.php?id=$1
RewriteRule ^cat-list/([0-9]+)/([a-z]+)$ cat-list.php?id=$1&sort=$2
RewriteRule ^sub/([0-9]+)$ sub.php?id=$1
RewriteRule ^sub/([0-9]+)/([a-z]+)$ sub.php?id=$1&sort=$2
RewriteRule ^upload/$ upload.php
RewriteRule ^search/$ search.php
RewriteRule ^about/$ about.php
RewriteRule ^privacy/$ privacy.php
RewriteRule ^rss.xml$ rss.php
RewriteRule ^stats/$ stats.php
RewriteRule ^faq/$ faq.php
RewriteRule ^yesterday/$ yesterday.php
RewriteRule ^yesterday/([a-z]+)$ yesterday.php?sort=$1
RewriteRule ^([a-z]+)$ index.php?sort=$1