Merge pull request 'HOTFIX: restore live site (revert cross-domain redirect that 404'd)' (#11) from kristijan-dev into develop
Deploy to Production on Develop Push / deploy (push) Successful in 13s
Details
Deploy to Production on Develop Push / deploy (push) Successful in 13s
Details
This commit is contained in:
commit
77dc3ae940
14
.htaccess
14
.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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue