# Allow access to all files in uploads folder
Order Allow,Deny
Allow from all

# Remove index.php from URLs
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

# Allow specific file types
<FilesMatch "\.(jpg|jpeg|png|gif|pdf|txt)$">
    Require all granted
</FilesMatch>