简体   繁体   中英

shorter URLs in Codeigniter

I'm creating a simple login application using Codeigniter and I have a simple question. What is the best URL for this type of app ? Somewhere I see something like this :

example.com/account/login
example.com/account/register

Somewhere like this :

example.com/accounts/login
example.com/accounts/register

And somewhere like this :

example.com/login
example.com/register

Which one is better for a big project ? Which one do you suggest to use ? Thanks

the login for a user of example.com to get into their account:

example.com/account/login
example.com/account/register

example.com has an Admin login and the Admin has access to all the accounts:

example.com/accounts/login
example.com/accounts/register

there is no "account" per se, example.com is a service:

example.com/login
example.com/register

To be secure never put an account number or account db record id in any url for a page that you have to be logged in to see.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM