RewriteEngine On
RewriteBase /phimhay/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^danh-sach/([^/]+)/?$ danh-sach.php?type=$1 [L,QSA]
RewriteRule ^tim-kiem/?$ tim-kiem.php [L,QSA]
RewriteRule ^phim/([^/]+)/?$ phim.php?slug=$1 [L,QSA]
RewriteRule ^the-loai/([^/]+)/?$ the-loai.php?slug=$1 [L,QSA]
RewriteRule ^quoc-gia/([^/]+)/?$ quoc-gia.php?slug=$1 [L,QSA]