deploy_feedback
deploy_feedback copied to clipboard
Provide www redirect
Hello,
It'd be nice if Deno Deploy had some kind or support / documentation / feature (like Netlify) for www redirects when adding a custom domain.
For example, configuring a site with a custom domain, I'd like to be able to 301 redirect non-www requests to www.
https://example.com > https://www.example.com
I second that. Very much needed for regular SEO optimisation.
Work around for now: add www.domain.com
to domains in addition to domain.com
.
![CleanShot 2022-08-22 at 15 10 01@2x](https://user-images.githubusercontent.com/29819102/185907367-d4e4d79d-0ba9-4848-8a30-08bdae47db61.png)
Update. I've done it this by configuring both domains and then doing the redirect from naked domain to www domain.
In Deno dashboard:
In domain provider(my is Namecheap):
In index.tsx: