Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Etienneca's avatar

wildcard domain with a Landing Page

Hi,

I have a problem with an app that is currently register on sa simple subdomain (let's say app.domain.com) it's a laravel webapp. And a landing page (powered by statamic) at the root domain domain.com.

What I want to do is authorize my users to have their own subdomain on the web app like yourname.domain.com.

So I saw that you can add wildcard on forge but how can I do that while keeping my landing under statamic? and just have the subdomains redirected to the app page?

0 likes
4 replies
bobbybouwmann's avatar

I believe you can just register a domain with all the sub domains and one with the correct domain without a subdomain.

*.domain.com // repository one
domain.com // repository two

That should be it as far as I know!

bobbybouwmann's avatar

So i've been testing this out in Forge and it seems it's not possible in forge itself, because the domain.com part needs to be unique!

Etienneca's avatar

Yeah I think I'm a bit stuck with that...

bobbybouwmann's avatar

You might be able to do it with a custom nginx file! I'm not an expert in that, but Google might be able to help you out ;)

Please or to participate in this conversation.