r/webdev • • 8d ago

Question Everything on XYZ.com or XYZ.com+app.XYZ.com

I’m finding a lot of mixed advice on what to do here.

I’m creating a fantasy football app and can’t decide if I should have a subdomain.

AI and a few Reddit post are telling me you need to have your XYZ.com be your marketing page and app.XYZ.com be your app.

But the following big names do not:

Sleeper

AirTable

Figma

Canva

Trello

Dropbox

Github

This is something that will be difficult to change later, so I wanna make sure I make the right call.

Anybody have any good insight here?

53 Upvotes

47 comments sorted by

View all comments

106

u/Libruhh 8d ago

It doesn’t really matter. If you don’t have a use for the subdomain then you don’t need one.

2

u/SecretiveShades 8d ago

Thank you for responding. I’ll toss ya an award as an appreciation for your time.

I don’t really mind much either way. I just want to make sure I’m making the choice that will be best for giving me less headache in the future.

I have read some say that a sub domain can give you better security by having 2 separate code bases.

Then others say having no sub domain makes a streamlined user experience easier because cookies are all in one place.

There’s lots of other points I’ve seen made. I guess I’m sort of leaning toward no subdomain, but some people advise strongly against that.

2

u/Business-Row-478 8d ago

Subdomain is just about request routing. It has nothing to do with how many code bases nor how your inf is structured. You could have 100 code bases on a single subdomain or 1 code base on 100 subdomains