mirror of https://github.com/vapor/docs.git
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:
parent
3d14e1b79a
commit
ff3d36c469
|
|
@ -28,6 +28,13 @@ Resources:
|
||||||
KeyPrefixEquals: /
|
KeyPrefixEquals: /
|
||||||
RedirectRule:
|
RedirectRule:
|
||||||
HostName: !Ref 'DomainName'
|
HostName: !Ref 'DomainName'
|
||||||
|
- RoutingRuleCondition:
|
||||||
|
KeyPrefixEquals: "4.0/"
|
||||||
|
RedirectRule:
|
||||||
|
HostName: !Ref 'DomainName'
|
||||||
|
HttpRedirectCode: 301
|
||||||
|
Protocol: "https"
|
||||||
|
ReplaceKeyPrefixWith: ""
|
||||||
WebsiteCloudfront:
|
WebsiteCloudfront:
|
||||||
Type: AWS::CloudFront::Distribution
|
Type: AWS::CloudFront::Distribution
|
||||||
Properties:
|
Properties:
|
||||||
|
|
|
||||||
1356
theme/404.html
1356
theme/404.html
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue