This was due to an incorrect .htaccess file configuration.
If there is a RewriteRule in the .htaccess file, add these RewriteCond before this.
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
For example, this code allows you to redirect all requests except static files to index.php
Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_URI} !=/index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* /index.php
source share