<IfModule mod_rewrite.c>
  RewriteEngine On
  
  # 允許直接存取檔案 (JS, CSS, 影像)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  # 確保請求的資料夾不會被 Laravel 攔截
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # 禁用目錄瀏覽
  #Options -Indexes
  
  # 只影響主網域，不影響子網域
  RewriteCond %{HTTP_HOST} ^ilandtower\.com$ [NC]
  RewriteCond %{REQUEST_URI} !^/fve-web/public/ [NC]
  RewriteRule ^(.*)$ /inquiry20250326/public/$1 [L,QSA]
</IfModule>

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php82 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit