Options -Indexes -MultiViews
RewriteEngine On

RewriteRule ^(WinGo|TrxWinGo|K3|D5|MotoRace)/([A-Za-z0-9_-]+)/GetHistoryIssuePage\.json$ index.php?lottery=$1&gameCode=$2&history=1 [QSA,L]
RewriteRule ^(WinGo|TrxWinGo|K3|D5|MotoRace)/([A-Za-z0-9_-]+)\.json$ index.php?lottery=$1&gameCode=$2 [QSA,L]

<FilesMatch "\.(sql|ini|log|bak|env)$">
  Require all denied
</FilesMatch>
