Report this

What is the reason for this report?

How to set up wildcard dynamic subdomains with DigitalOcean App Platform?

Posted on August 26, 2025

Hi everyone,

I’m trying to figure out how to configure wildcard subdomains using DigitalOcean App Platform.

Here’s my setup:

  • I have domain.com serving as my main landing page.

  • I’d like all dynamic subdomains (e.g. xyz.domain.com, abc.domain.com) to point to a different app, not the same one that serves the landing page.

From what I understand, I can’t easily handle subdomain rewrites or routing inside my Svelte app without changing the URL, so I think I need to configure this at the DNS / App Platform level.

Has anyone set up something similar? What’s the best way to configure DigitalOcean so that:

  1. The root domain domain.com points to one app.

  2. Any subdomain (*.domain.com) points to another app.

Any guidance would be much appreciated!



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I think that you should be able to do that by following the steps here:

https://docs.digitalocean.com/products/app-platform/how-to/manage-domains/#create-a-wildcard-record-for-domain

But as far as I can tell, you can add a wildcard record to your app’s domain to redirect queries for non-existent subdomains to the domain’s root. Would that work for you or are you trying to point the domains to a totally separate web service?

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.