我正处于规划一个web应用程序的阶段,我想让用户为他们的个人资料页面创建一个自定义url,我在soundcloud上看到了一些我喜欢的东西,用户点击标题,出现一个文本框,然后用户可以根据他/她的喜欢更改url(我假设一些jquery验证在这一点上继续)。
我还没能在网上找到关于这个的任何东西(除非它特别叫什么)。有人能告诉我正确的方向吗或者告诉我url管理是通过数据库还是。htaccess处理的?
完全被难住了,但它看起来很邪恶,所以如果你能帮忙,请提前感谢。
这不是一种方法,我将使用一些框架,但如果我把框架名称放在这里它会产生一些讨论,所以,这是 my
逻辑:
WebServer > Check file existence RewriteCond on Apache, try_files on Nginx
'-- File exists > ignore
'-- File doesn't exist then pass the request to a Router file
'-- Check > Check if it's a system request, like '/register'
'-- Match > Process the request itself
'-- Doesn't Match > Validate for a possible username
'-- Is a valid username
'-- Look for that user on database
' '-- User exists > internally redirect for profile process
' '-- User doesn't exists > 404
'-- Is not a valid user > 404
也:
<引用类>我推荐CakePHP
引用类>