RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

<IfModule mod_headers.c>
 Allow from all
    Header set Access-Control-Allow-Origin "*"
</IfModule>

<FilesMatch ".(pdf)">
 Allow from all
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php80” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-alt-php80 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
