如何修复无限循环错误?

I have a script, and it is preventing me from accessing urls such as example.com/hi that are not part of the script.

How can I add an exception so that these urls work? This is my htaccess right now.

Options -MultiViews

RewriteEngine On

# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

You can add additional rewrite conditions to exclude certain URLs. For example:

# Handle Front Controller...
RewriteCond %{REQUEST_URI} !^/hi/
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

If that still doesn't work you can place a .htaccess file with the content RewriteEngine Off inside the folder.