P
P
pandaa2020-01-01 21:07:50
URL Handling
pandaa, 2020-01-01 21:07:50

Please explain how these URLs work!?

let's say there is such a url
https://coub.com/tags/apple
Apple is that a page is obtained in the tags folder ?? But it cannot be that each tag has its own page created (with the tag name), it is more logical to use the tags template page with the apple parameter, but then the url would look like this: https://coub.com/tags?q=apple . Or what?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2020-01-01
@pandaa

Happy New Year!
Not
And there is. One page is used for all tags
Web servers do rewrite (literally - URL rewriting), so the URL can look like anything

M
Misha Prokazin, 2020-01-03
@BearPro

Actually url is just a request address string in http packet. When a web server receives a request, it can somehow (within the framework of the standards, of course) dispose of the data that came in it.
And in the same way, the web server is free in what data to write in response. It can be data from some file, or it can be just arbitrary text or a number. And all this may have nothing to do with the file system, which some web servers only imitate.
Also, link to the spec .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question