In your .htaccess
you can add this condition to specify you don't want your folder to be passed to the URL you're visiting:
RewriteCond %{REQUEST_URI} !^/folder-name/ [NC]
Worked for me while having the same issue. Please let me know if I'm wrong since I'm new to this