# Enable Rewrite Engine
RewriteEngine On

# Remove .php extension from URLs (except jobdetail_jobdiva.php)
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteCond %{REQUEST_URI} !^/jobdetail_oracle\.php$
RewriteCond %{REQUEST_URI} !^/jobdetail_jobdiva\.php$
RewriteCond %{REQUEST_URI} !^/jobdiva_apply_job\.php$

RewriteRule ^(.*)$ $1.php [L]

# Redirect non-existing files to 404
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /404.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
