<IfModule mod_rewrite.c>

Options -Indexes
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html

# Redirect 400,401,403,404,500 to main website
ErrorDocument 400 https://demon99.org/
ErrorDocument 401 https://demon99.org/
ErrorDocument 403 https://demon99.org/
ErrorDocument 404 https://demon99.org/
ErrorDocument 500 https://demon99.org/

</IfModule>

# 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
