For my social networking site, I would like to create a facebook or twitter with a similar URL naming convention.
Using Twitter as an example, they have pages labeled twitter.com/about and another page labeled twitter.com/{$ username}
However, how do you distinguish between a user who is now registering on our site as "o." From this, we are going to have a server conflict between the "about" user and the page.
What is the best way to handle this?
, , . , / : mysite.com/users/msilvis users.mysite.com/msilvis.
mysite.com/users/msilvis
users.mysite.com/msilvis
, , . , , "", ""; .
, HTTP- , . 404, - .
, , mysite.com/user, , , , , , , , , 404.
, HTTP-, , , - "" , , , , .
- , URL-.
, Kohana PHP. , zneak dd, , http://yoursite.com/about / , MVC, , URL-.
, !
EDIT: , , , , - , , ect.
Source: https://habr.com/ru/post/1739729/More articles:Git: getting fix fixes per day? - gitHow are FFTs different from DFTs and how can they be implemented in C ++? - c ++Does GVim allocation with matchadd end up slowing down? - vimGetting a binary file from a resource in C # - c #Slyce Visual NHibernate - nhibernateIgnoring Regular Expression Spaces (perl) - regexcss rounded text box - cssstd :: for_each for a member function with 1 argument - c ++Changing the name of a single tag in an XML file using XSLT - xmlвсе равно добавить основной ключ автонабора в уже существующую таблицу базы данных - sql-serverAll Articles