Enhancement/setup redirect + fix 404 page (#659)

* Add redirect from /4.0/ to /

* Fix 404 error page to use generated css
This commit is contained in:
BennyDB 2022-05-10 10:54:30 +02:00 committed by GitHub
parent 3d14e1b79a
commit ff3d36c469
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 1352 deletions

View File

@ -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:

File diff suppressed because it is too large Load Diff