RewriteEngine On
RewriteBase /iptv/epg/

# Redirect all .json requests to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\.json$ index.php [L,QSA]
