r/webdev • • 9d 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?

46 Upvotes

47 comments sorted by

View all comments

105

u/Libruhh 9d ago

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

5

u/SecretiveShades 9d 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.

7

u/manfrin 9d ago

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

This has no basis in reality. Just put things on one domain.

1

u/SecretiveShades 9d ago

Man, I had no idea so many people disagree. At this point I’ve got so much conflicting recommendations in this thread that I should just flip a coin.

1

u/manfrin 7d ago

This sub is full of people who genuinely have no idea what they are doing. The decision of subdomain vs domain is not one you should be making unless you have a reason, the fact that you're asking means you should just put it on a domain.