-1

我正处于规划 Web 应用程序的阶段,我希望允许用户为其个人资料页面创建一个自定义 url,我在 soundcloud 上看到了我喜欢的东西,用户单击标题并出现一个文本框然后,用户可以根据自己的喜好更改 url(我假设此时正在进行一些 jquery 验证)。

无法在网上找到任何关于此的内容(除非它专门称为某些东西)。那么有人可以指出我正确的方向或告诉我是通过数据库还是.htaccess 处理的url 管理?

完全被难住了,但它看起来很邪恶,所以如果你能提供帮助,请提前感谢。

4

1 回答 1

-1

这不是一种方法,我会使用一些框架,但如果我在这里输入一个框架名称,它会引发一些讨论,所以,这就是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

于 2013-05-09T19:55:29.293 回答