RewriteEngine On
RewriteRule ^index.html$ /index.php
RewriteRule ^exit.html$ /thoat.php
RewriteRule ^captcha.png$ /ktc.php
RewriteRule ^blog/text-([0-9]+).html$ /blog/text.php?id=$1&html
RewriteRule ^blog/vote-([0-9]+).html$ /blog/vote.php?id=$1
RewriteRule ^blog/morong-([0-9]+).html$ /blog/text.php?id=$1&morong
RewriteRule ^err.html$ /index.php?err
RewriteRule ^blog/theloai.html$ /blog/index.php
RewriteRule ^comment/post-([0-9]+).html$ /comment/cm.php?id=$1&viet
RewriteRule ^trang-([0-9]+).html$ /index.php?p=$1
RewriteRule ^comment/quote-([0-9]+)-([0-9]+).html$ /comment/cm.php?id=$1&q=$2&quote
RewriteRule ^blog/blog-(.*).html$ /blog/xem.php?url=$1
RewriteRule ^blog/m-(.*).html$ /blog/index.php?url=$1
RewriteRule ^blog/p([0-9]+)_(.*).html$ /blog/index.php?url=$2&p=$1
RewriteRule ^comment/blog-(.*).html$ /comment/index.php?url=$1
RewriteRule ^comment/p([0-9]+)_(.*).html$ /comment/index.php?url=$2&p=$1
RewriteRule ^comment/smiley.html$ /comment/bb.php?smiley
RewriteRule ^comment/smiley-p([0-9]+).html$ /comment/bb.php?smiley&p=$1
RewriteRule ^file-([0-9]+).html$ /file.php?id=$1&xem
RewriteRule ^down-([0-9]+).html$ /file.php?id=$1&down
RewriteRule ^blog/bai-gui.html$ /blog/blog.php
RewriteRule ^blog/trang-([0-9]+).html$ /blog/blog.php?p=$1


ErrorDocument 404 http://blog.bentrewap.com/err.html
ErrorDocument 403 http://blog.bentrewap.com/err.html
