0

Take the example question https://stackoverflow.com/questions/3563957/https-url-path-and-query-string.

As you can see, we have the segment /questions followed by what I'm assuming is the question ID, /3563957. In my head, this would indicate a folder structure like:

. └── questions/ └── 3563957 

However, I can't imagine a directory is being generated for each question. To me, this seems like a query string that is being used as a URL segment. How is this accomplished?

1 Answer 1

0

This is accomplished on the server side. When the server sees the request, it likely doesn't treat the url like a directory. This can be accomplished many different ways depending on what you are using for your server.

Sign up to request clarification or add additional context in comments.

2 Comments

I have experience with both asp.net and php, do you have any idea how I could locate an example of these being implemented in either of those environments?
@NewWebDev I don't have much experience in those areas but I'm sure you could find some online.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.