1

I've been researching the URL structures for web apps that have a marketing homepage. For example...

Example 1
The homepage lives on www.productname.com and the application on app.productname.com

Example 2
The homepage lives on www.productname.com and the application on www.productname.com/app/

I'm trying to understand the rationale behind these 2 examples? Are they driven by technical limitation? Or by design?

migrated from webapps.stackexchange.com Jun 11 '18 at 22:40

This question came from our site for power users of web applications.

1

It will generally depend on the technical aspect of your application.

If the only thing that's public in the app is the log in page, having a separate domain name (app.example.com) is a good idea because that way you can prevent the entire app website from being indexed by search engines.

If you think you'd have many public pages, then having them on the same website is a good idea SEO wise, because Google is going to see www.example.com as one website and app.example.com as another website (unless you 301 everything, but then what's the point of having a sub-domain?!)

For example, your app. may come with a documentation which you want to make public (after all, it's a good idea to have the documentation searchable, google is likely going to be better at finding the right page for your users than your own search capability.) That being said, you could have the doc on www.example.com and still have the app on app.example.com.

Technically, though, it may be useful if you are going to use "strange" backends such as Tomcat. Personally, I still don't understand what problems Tomcat solves because all my systems never require it. Yet I know that to setup your server(s) it could make it a lot easier. Not only that, you could have one server for the website (www.example.com) and another for the application (app.example.com).

0

I think it mostly comes down to aesthetics. Especially, when you want to refer people directly to your app via a form of media where a link or button isn't possible, but a written-out url is (e.g. a photo, marketing materials, a business card). So, sometimes a user-accessibility issue as well.

However, I do remember a hosting setup I had a few years back that created subdomains like app.productname.com by aliasing them to an automatically generated directory of the same name like productname.com/app (i.e. www.productname.com/app/).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy