I'm not a web developer and I had some basic experiences of web developing (I made my own website some time ago, played around with php, css, some asp.net and other pretty straightforward stuff) but right now I'm asking myself out of pure curiosity: how does stackexchange websites manage to show their questions to google (or any other search engine) as "different webpages" ?
I mean: there are a lot of questions and posts which are surely stored in a database, but regarding the formatting of the page (that is always the same) I suppose each time a new question with relative answers is loaded, something like php's include
is used (or ajax calls which load stuff into a stub-page, I never used ajax so I'm quite unsure on how this process works).
TL;DR: how does google see multiple webpages (as if they were looking at static .html pages) even if the contents are fetched from a database per each question?