Answer the question
In order to leave comments, you need to log in
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
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
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 questionAsk a Question
731 491 924 answers to any question