Redirect www to apex #591
Unanswered
RickCogley
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello - given an entry point like the below
index.ts
and hosting on deno deploy, how could I redirect www to the apex, for instancewww.mydomain.com
tomydomain.com
? Is it possible with a single entrypoint? Currently I have the apex only setup, and DNS A and AAAA records set up just for that, not yet www.I assume I'd need to add A and AAAA records in my dns for the www subdomain (correct?) but, can someone say how I need to change my
index.ts
to do the redirect to the apex, if that's possible with oak?Another option is simply to make another deno deploy project, using say
index2.ts
, and pointing at a differentindex.html
file, which does the redirect on load.Appreciate any advice!
Beta Was this translation helpful? Give feedback.
All reactions