[英]shorter URLs in Codeigniter
I'm creating a simple login application using Codeigniter and I have a simple question.我正在使用 Codeigniter 创建一个简单的登录应用程序,我有一个简单的问题。 What is the best URL for this type of app ?
此类应用程序的最佳 URL 是什么? 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 用户登录其帐户的登录名:
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 有一个管理员登录,管理员可以访问所有帐户:
example.com/accounts/login
example.com/accounts/register
there is no "account" per se, example.com is a service:本身没有“帐户”,example.com 是一项服务:
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.为安全起见,切勿将帐号或帐户数据库记录 ID 放在您必须登录才能查看的页面的任何 url 中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.