how the answers entered in ee is b'com html file!

Just in a curiosity, I want to know how the expert-exchange website is displaying all the answers given by the experts as a html file. Is that any program is writing the answers as a separate html file? or the site is re-writing the url (like mod_rewrite). I want to know exactly what is happening. And, if the html files are generated by a program for each and every answer, what is the usage of this type of technique?

Thanks in advance,
Who is Participating?
re: vadivhere

No, it doesn't need to be static page. Web crawlers cache all the pages which looks like static page, but they can also be dynamic pages.

You can create a site where page names look like:,param2--value2,param2--value3

Your local Apache can rewrite all the URLs and change:
__  to   ?
--   to   =
,     to &

After rewriting your application sees the pages with normal parameters:¶m2=value2¶m2=value3

Gor google that are separate pages and you will have a higher rank.

EE can work the same way:

can be rewrited internally to i.e:

Your idea of generating pages into disk and serving them as static files is also good, but it can be achieved in different way - by using caching proxies. (Apache with mod_cache, or Squid).
When you use proxies you can set time after which the page expires and can be generated again.

So, your problem is not trival and choosing a good solution depends on type of your application.
Hi vadivhere,
This site is using a dynamic html system. You find this in many places like online forums and things of that nature. You should look up "dhtml," "xml," "php," and probably just generally "Dynamic HTML."  You are correct in that the page is generated via interaction with a database and other dynamic functions. For the most part "static" html files are not very much to be found on this, and many other, sites. You use this technique so that you can create html pages "on the fly," otherwise ever change in a page would have to essentially be manually created or using some kind of cumbersome technique. Dynamic HTML creation is very powerful! Hope this helps.


Q_21180891.html could be a path info, instead of a real not saying EE is using this technique. but if you ask me to do it, i could use path info

or maybe "Programming/Q_21180891.html" is the whole path info
EE uses dynamic page generation.
Every page is probably processed by one script/application - whatever you call it. This script can check its URL and get a question ID from that url. And when you have a question ID you can create an output page.

The .html extension of each page means nothing, because web server can be configured to serve PHP/ASP/JSP files with .html extension.
vadivhereAuthor Commented:
But, when i searched some terms in google or any other search engine, it displays EE's page having HTML extension, that means the page is static and present in the webserver and it is crawled by the crawlers. If it is a dynamic page, definetly the search engine will left it out.

I think, as NetworkArchitect told it is a "Dynamic Page Generation" by a ASP/PHP program and it is kept in the public accessable path and it is accessed by the search engines.

If this is case, assume how much questions and answers are posted in this website and think the volume of the website.

I need an exact answer of the usage of writing a dynamically entered content by the user into a static page is really usefull to let the search engine access the page? and Is that this the way EE is working?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.