What URL structure is recommended?

I was wondering if I can get an opinion on the following structure. I create a website where a company can register and then get its own page at the following URL

company.site.com

I wonder what address is recommended for the administration for this company? I think one of the following:

company.site.com/admin - Github style

  • Unique user
  • It causes complications when entering the system - what happens if they enter the wrong subdomain, are they redirected to the wrong login?

admin.site.com - Hotmail style

  • Makes login very simple, user sees what suits them on this page, each user uses the same URL
  • Technically incorrect, since the administrator is a subsidiary of the company.

Can someone please give me your thoughts on how they would expect this to be structured.

+4
source share
4 answers

You must choose a route that is technically easier to implement with the architecture of your application.

The second way is simpler, I think, because you still need to serve content that comes from the user's domain, and you probably know what the user domain is.

- , , - , , /admin , ?

, site.com/admin, , ?

+1

. , .

0

company.site.com/admin - . .

.02

0

I create the same and I use company.site.com/adminbecause in my application all users / members use the same dynamic files to administer their subdomain through sessions.

0
source

Source: https://habr.com/ru/post/1529244/


All Articles