<IfModule mod_rewrite.c>
    RewriteEngine On

    # Force PHP 8.2
    <IfModule mime_module>
        AddHandler application/x-httpd-php82 .php
    </IfModule>

    # Redirect all requests to the public folder
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
