HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ubuntu-8gb-hel1-1 6.8.0-55-generic #57-Ubuntu SMP PREEMPT_DYNAMIC Wed Feb 12 23:42:21 UTC 2025 x86_64
User: www-data (33)
PHP: 8.1.32
Disabled: NONE
Upload Files
File: /var/www/html/obaasimaghana/public/.htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

# Allow access to all
<IfModule mod_authz_core.c>
    Require all granted
</IfModule>

# Allow direct access to files
<FilesMatch "\.(css|js|jpg|jpeg|png|gif|ico|pdf|woff|woff2|ttf|svg)$">
    Require all granted
</FilesMatch>

# Handle Front Controller
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]

# Protect PHP files except index.php
<FilesMatch "^(?!index\.php).*\.php$">
    Order allow,deny
    Deny from all
</FilesMatch>

# Increase PHP upload limits
php_value upload_max_filesize 500M
php_value post_max_size 500M
php_value max_execution_time 300
php_value max_input_time 300