<IfModule mod_rewrite.c>
    RewriteEngine On

    # If cPanel cannot point the domain document root directly to public/,
    # keep the project in public_html and route requests to CodeIgniter's front controller.
    RewriteCond %{REQUEST_URI} !^/public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

