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
Uh oh!
There was an error while loading. Please reload this page.
-
Hello - given an entry point like the below
index.tsand hosting on deno deploy, how could I redirect www to the apex, for instancewww.mydomain.comtomydomain.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.tsto 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.htmlfile, which does the redirect on load.Appreciate any advice!
Beta Was this translation helpful? Give feedback.
All reactions