Options -Indexes
AddDefaultCharset UTF-8

RewriteEngine On

# Chặn truy cập trực tiếp vào code và dữ liệu tạm
RewriteRule ^(src|storage|cron)(/|$) - [F,L]

# v1/tinh -> v1/index.php?route=tinh
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^v1/(.*)$ v1/index.php?route=$1 [QSA,L]
