Possible way to resolve it is by excluding .txt and .tmp files from being redirected. You can add the following line to your .htaccess under the Rewrite Rules:
RewriteEngine On <--- This line may not be necessary if it already exist in your .htaccess file RewriteCond %{REQUEST_URI} !\.(txt|tmp)$