404 - Page not found
The page you are looking for may have been removed, changed in name, or it is temporarily unavailable. Please try again later.
+ Return to the home page -From ff3d36c4693521744bda315aab8bf2a868e1a582 Mon Sep 17 00:00:00 2001 From: BennyDB <74614235+BennyDeBock@users.noreply.github.com> Date: Tue, 10 May 2022 10:54:30 +0200 Subject: [PATCH] Enhancement/setup redirect + fix 404 page (#659) * Add redirect from /4.0/ to / * Fix 404 error page to use generated css --- stack.yml | 7 + theme/404.html | 1356 +----------------------------------------------- 2 files changed, 11 insertions(+), 1352 deletions(-) diff --git a/stack.yml b/stack.yml index f3b4c902..d3f31a0d 100644 --- a/stack.yml +++ b/stack.yml @@ -28,6 +28,13 @@ Resources: KeyPrefixEquals: / RedirectRule: HostName: !Ref 'DomainName' + - RoutingRuleCondition: + KeyPrefixEquals: "4.0/" + RedirectRule: + HostName: !Ref 'DomainName' + HttpRedirectCode: 301 + Protocol: "https" + ReplaceKeyPrefixWith: "" WebsiteCloudfront: Type: AWS::CloudFront::Distribution Properties: diff --git a/theme/404.html b/theme/404.html index 4c422f6b..60433d83 100644 --- a/theme/404.html +++ b/theme/404.html @@ -1,1357 +1,9 @@ +{% extends "main.html" %} - - -
- - - - - - - - - - - - - - - -The page you are looking for may have been removed, changed in name, or it is temporarily unavailable. Please try again later.
+ Return to the home page -