# --- AI folder shield: do not let WordPress rewrite rules affect this folder ---
RewriteEngine On

# If the request is a real file or folder, serve it directly
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Always use this folder's index.php
DirectoryIndex index.php

# Optional: stop caching while debugging
<IfModule mod_headers.c>
  Header set Cache-Control "no-store, no-cache, must-revalidate, max-age=0"
  Header set Pragma "no-cache"
  Header set Expires "0"
</IfModule>
