# =========================================================

# FORCE PHP 8.1 - ABSENSI ONLY

# =========================================================

<FilesMatch ".(php|php8|phtml)$">
SetHandler application/x-httpd-ea-php81___lsphp </FilesMatch>

# =========================================================

# cPanel PHP CONFIGURATION

# =========================================================

# BEGIN cPanel-generated php ini directives, do not edit

# Manual editing of this file may result in unexpected behavior.

# To make changes to this file, use the cPanel MultiPHP INI Editor.

# For more information, read your cPanel documentation.

<IfModule php7_module>
   php_value error_log "/home/kodf4951/logs/php.error.log"
   php_flag log_errors On
</IfModule>

<IfModule lsapi_module>
   php_value error_log "/home/kodf4951/logs/php.error.log"
   php_flag log_errors On
</IfModule>

# END cPanel-generated php ini directives, do not edit

# =========================================================

# PHP 8.1 HANDLER

# =========================================================

<IfModule mime_module>
    AddHandler application/x-httpd-ea-php81___lsphp .php .php8 .phtml
</IfModule>

# =========================================================

# LARAVEL

# =========================================================

<IfModule mod_rewrite.c>

```
RewriteEngine On

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# Redirect Trailing Slashes If Not A Folder
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]

# Send Requests To Front Controller
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
```

</IfModule>
