Options -Indexes
RewriteEngine On

# The WHMCS module calls /2_8_5 without a trailing slash.
# Internally serve the JSON endpoint instead of allowing Apache mod_dir
# to return a 301 redirect to /2_8_5/.
RewriteRule ^2_8_5$ 2_8_5/index.php [END,QSA]
RewriteRule ^2_8_5/$ 2_8_5/index.php [END,QSA]

# Block direct access to auxiliary PHP data files, if added later.
RewriteRule ^2_8_5/(product|config)\.php$ - [F,L,NC]
