RewriteEngine On
RewriteBase /ftx/

# If the request is not for a real file or directory, route to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
RewriteRule ^ftx/audio/ - [L]
# Allow direct access to audio folder (no token required)
RewriteRule ^ftx/audio/ - [L]

# Your existing token redirection rules remain below
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
# Force correct MIME type for MP3 files
AddType audio/mpeg .mp3

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php83” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php83 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
