<Files "config.php">
  Order allow,deny
  Deny from all
</Files>

RewriteEngine On

# Ensure the RewriteBase is set correctly
RewriteBase /

# If the request is not a real file or directory
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Remove .php extension
RewriteRule ^([a-zA-Z0-9_-]+)$ $1.php [L]

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