Skip to content

Feature/cloudfront function/root handler#64

Merged
pvautour merged 2 commits intodevfrom
feature/cloudfront-function/root-handler
Mar 22, 2023
Merged

Feature/cloudfront function/root handler#64
pvautour merged 2 commits intodevfrom
feature/cloudfront-function/root-handler

Conversation

@pvautour
Copy link
Copy Markdown
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.

ehfounder 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 ehfounder 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