A question about URL access

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.