RewriteEngine On

RewriteBase /

ErrorDocument 401 /error.php

ErrorDocument 403 /error.php

ErrorDocument 404 /error.php

ErrorDocument 500 /error.php

RewriteRule ^thongbao/([0-9]+)$ thongbao.php?id=$1 [L]

RewriteRule ^thay-mat-khau$ /thay-mat-khau.php [L]

RewriteRule ^rank$ /bang-xep-hang.php [L]
RewriteRule ^giftcode$ /giftcode.php [L]
RewriteRule ^(([^/]+/)*[^.]+)$ /$1.php [L]

<files .htaccess="">
    order allow,deny
    deny from all
</files>