# LIVEXWIN Website Directory Security Rules
<FilesMatch "(^config(\.local)?\.php$|\.(json|sql|sqlite|md|txt|template|sh|bat)$)">
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
    <IfModule !mod_authz_core.c>
        Order allow,deny
        Deny from all
    </IfModule>
</FilesMatch>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^m(/index\.html?)?/?$ index.php [NC,L,QSA]
    RewriteRule ^admin(/index\.php)?/?$ index.php?portal=admin [NC,L,QSA]
    RewriteRule ^sitemap\.xml$ sitemap.xml.php [NC,L]
    RewriteRule ^robots\.txt$ robots.txt.php [NC,L]
    RewriteRule ^game_providers/ - [F,L]
    RewriteRule ^api/bigbang/wallet/user_data/?$ wallet_user.php [NC,L,QSA]
    RewriteRule ^api/bigbang/wallet/balance_change/?$ wallet_balance.php [NC,L,QSA]
    RewriteRule ^api/bigbang/callback/?$ callback.php [NC,L,QSA]
    RewriteRule ^api/bigbang/webhook/?$ webhook.php [NC,L,QSA]
    RewriteRule ^api/(balance|bet|win|webhook)/?$ api/$1.php [NC,L,QSA]
</IfModule>
