From 0672f6b28bf7cee913018b9a099c6ba71ca8d759 Mon Sep 17 00:00:00 2001 From: help4bis Date: Fri, 3 Jul 2026 04:53:53 +1000 Subject: [PATCH] fix: backport SPA routing block added directly on production (2026-05-01) to web/.htaccess Production app2.m8chat.au/.htaccess gained Flutter HTML5 routing rules edited live on brisbane01; local repo never received them. Full-tree md5 comparison (45 files) shows this was the only drift. Co-Authored-By: Claude Fable 5 --- web/.htaccess | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/web/.htaccess b/web/.htaccess index 9021492..174ae99 100644 --- a/web/.htaccess +++ b/web/.htaccess @@ -4,3 +4,12 @@ Header set Cross-Origin-Opener-Policy "same-origin" Header set Cross-Origin-Embedder-Policy "require-corp" + +# Flutter HTML5 routing — all unknown paths serve index.html +Options -Indexes +RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +RewriteRule ^(.*)$ /index.html [L,QSA]