# First Jack Store - Apache Configuration
DirectoryIndex index.php index.html

<IfModule mod_rewrite.c>
  RewriteEngine On

  # Pass-through for the AI Admin Panel
  RewriteRule ^ai(/.*)?$ - [L]

  # Deliver existing files and directories directly
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # Fallback all storefront routes to index.html
  RewriteRule ^ index.html [L]
</IfModule>
