Compare commits

..

No commits in common. "77dc3ae940aa9a93d552285c6422bd39086db438" and "a7dceb4f7b3290643552efa50e2408b69d2030dc" have entirely different histories.

1 changed files with 6 additions and 8 deletions

View File

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