diff --git a/.htaccess b/.htaccess index d36aa188..8a98e89f 100644 --- a/.htaccess +++ b/.htaccess @@ -1,12 +1,14 @@ RewriteEngine on -# ----- Canonical domain + language root ----- -# Migrate the old host to the canonical domain, preserving the path. -RewriteCond %{HTTP_HOST} ^(www\.)?msos\.spletnimojster\.si$ [NC] -RewriteRule ^ https://msosorg.com%{REQUEST_URI} [R=301,L] -# Send the bare root to the default-language homepage. -RewriteRule ^/?$ https://msosorg.com/en/ [R=301,L] +# ----- Language root redirect ----- +# Send the bare root to the default-language homepage, on WHATEVER host is +# serving the site (relative — no cross-domain redirect). Do NOT force +# msosorg.com here: the site is currently served from msos.spletnimojster.si, +# and msosorg.com does not yet serve these files, so forcing it 404s. +# Once msosorg.com is pointed at this same docroot, a canonical-host redirect +# can be added back safely. +RewriteRule ^/?$ /en/ [R=301,L] # ----- Defense-in-depth: block dev/sensitive files if they ever ship ----- # (The deploy already excludes these; this is a safety net. robots.txt,