
# BEGIN: Redirect non-www to www.eleazarintl.com
RewriteEngine On
RewriteBase /

# Skip redirection for admin directory
RewriteCond %{REQUEST_URI} !^/admin/

# Match .shtml or .phtml and mark them for blocking
RewriteRule \.(shtml|phtml)$ - [G,L,E=blockfile:1]

# Set noindex header only for matched files outside admin
Header always set X-Robots-Tag "noindex, nofollow" env=blockfile

# Redirect to www version of eleazarintl.com
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ https://www.eleazarintl.com/$1 [L,R=301]

# BEGIN: Pretty URLs (standard rewrite rules)
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# Block .shtml and .phtml files from being accessed or indexed


# PHP Version Handler (generated by cPanel)
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php74 .php .php7 .phtml
</IfModule>

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