The .htaccess file at the root of your siteβs directory contains a RewriteRule that redirects every incoming request to the Wordpress downloader. It probably looks something like this:
RewriteRule ^(.+)$ index.php?$1 [QSA,L]
You must add two conditions to this rule. These conditions provide exceptions that ensure that the rule is only executed if there is no ( ! ) File ( -f ) or there is no directory ( -d ) that matches the requested URL:
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)$ index.php?$1 [QSA,L]
That should do the trick.
source share