Domain redirects (e.g. apex to www)
complete
B
Bart Verkoeijen
To benefit SEO, I would like to redirect the apex domain (example.com) to the www subdomain (www.example.com). Currently the HTTP Redirect rules only apply to the paths, and the static website also has the root path / in use. Ideally I can select a domain redirect per domain, and choose the type of redirect e.g. 302, etc. This could also be setup for the starter domain, for the same SEO reasons.
B
Bikram Gupta
Hi, just wanted to confirm that we have started working on it. I will reply when the public preview is ready this month.
W
Whitney Jutzin
complete
Thank you so much for your feedback here! Our Product team has recently released tooling that can enable you to achieve this goal with your domains in the App Platform. You can learn more here: https://docs.digitalocean.com/products/app-platform/how-to/manage-domains/#use-subdomain-routing If you need any help getting started, please don't hesitate to reach out to our Support Team: https://cloudsupport.digitalocean.com/s/ Thank you again for taking the time to share this need with us and giving us a chance to provide a solution for you!
B
Bikram Gupta
Hi, just wanted to confirm that we have started working on it. I will reply when the public preview is ready this month.
C
Cameron Parry
This would be really useful, especailly for static sites where you can't handle the redirect within the app itself. At the moment I'm having to use Cloudflare redirect rules instead.
J
Jesse Rykerson
I agree, this would be very helpful for obvious SEO reasons. According to the DO documentation https://www.digitalocean.com/community/tutorials/how-to-redirect-www-to-non-www-with-nginx-on-ubuntu-14-04, these redirects need to be set up through an SSH connection but SSH is not available in the app platform. Due to this and what Bart mentioned previously, there is no way to direct an apex domain to a www subdomain (or the reverse). It seems like Bart's idea of allowing redirects per domain in the app settings would allow domain redirects in the app platform without needing SSH.