Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/cloudfront function/root handler #64

Merged
merged 2 commits into from
Mar 22, 2023

Conversation

PVautour
Copy link
Member

This pull request does two things:

  • it adds to the cloudformation the root-handler code that was already in use to redirect certain requests to /index.html. This code was currently put in place manually in all environments.
  • it adds to the cloudfront function some code to redirect requests to www.<env>.geo.ca to <env>.geo.ca. This should be better for SEO as it concentrates our traffic to a single host url.

indiciumx and others added 2 commits March 13, 2023 22:31
every time a request is made to geo.ca.

it does the following:

- redirects requests that end with `/` or don't
contain a `.` to /index.html
- redirects requests to `www.<env>.geo.ca` to
`https://<env>.geo.ca`. This should improve SEO by
concentrating our traffic.
@PVautour PVautour requested a review from indiciumx March 22, 2023 17:21
@PVautour PVautour merged commit 5e05bb9 into dev Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants