RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+)$ $1.php [L]

# Block suspicious query strings
RewriteEngine On

RewriteCond %{QUERY_STRING} (\.\./|\.\.\\|<|>|%3C|%3E|base64_encode|base64_decode|GLOBALS|_REQUEST) [NC]
RewriteRule .* - [F,L]

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