I have a question about URL access. I am not familiar with php and web programming. Access a url. All I know is www. xxx. xxxfile. suffix? Param1 & amp; param2 & nbsp. But I can see that weibo's URL: weibo. comu1578951584weibo's short link: t. cnzjzf92F & nb has a question about URL access.
My younger brother has been learning php and web programming for a short time and does not know much about it.
Access a url. All I know is www. xxx. xxx/file. suffix? Param1 = & param2 =.
But I see the weibo address: http://weibo.com/u/1578951584
Weibo short link: http://t.cn/zjzf92F
And the csdn blog address: http://blog.csdn.net/5653325/article/details/6639829
And so on are followed by some numbers, should not be a fixed page, but dynamic display based on the final path parameters.
I want to ask you how this works? How is php implemented?
Thank you.
------ Solution --------------------
This is not for php
This is url rewrite.
Apache and nginx have corresponding functions.
------ Solution --------------------
Url pseudo-static
------ Solution --------------------
This is pseudo-static, so it is friendly to search engines and also reduces SQL vulnerabilities.
------ Solution --------------------
Implemented through url rewriting
It can affect the parameter name in the url, add a security line, and make the url display more friendly to the search engine.
Rewriting is mainly based on url rewrite regular expression matching.
Currently, the mvc mode uses the router mechanism to present URLs. However, url rewrite is also required.
------ Solution --------------------
The above is common
Another possible cause is server-side path ING, which is common in ftp and where many http applications are used by a small number of users.
Many mappings are fixed and occasionally dynamic.