Report this

What is the reason for this report?

Problems with redirecting root to subdomain

Posted on May 17, 2023

I have currently a problem with the whole domain thing. What i want to achieve is that my app on app platform is accessible from mydomain.com and www.mydomain.com but the root should always redirect to the www subdomain.

What i did before was i added both domains on namecheap and then the app was accessible from root and www. but since i use localstorage in my app that is a problem. and if i just added www and redirected the root to that it was only possible with http://mydomain.com and not https://mydomain.com.

How could i solve this? Would it be easier if i let DO manage my domain (nameserver) and what records would i have to add then

thanks

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.