Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Html Pages but Dynamic

how create html pages as dynamic

7:54 pm on Nov 19, 2004 (gmt 0)

New User

10+ Year Member

joined:Oct 18, 2004
votes: 0


I am bit confused, that i visited most sites and seen that their url include like [domain.com...]



and they excute the query well.
I just want to know how we can create such type of queries using HTML language.

I know most of the people also want to know this theory.


8:18 pm on Nov 19, 2004 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
votes: 6

You can easily map .html pages server-side to be parsed for PHP, ASP or whatever technology you prefer. The method depends on the platform you are using, but for example if you are using Apache, you can simply add the following line to your root-level .htaccess:

AddHandler application/x-httpd-php .html

It is not a good idea to do so if the majority of your .html pages are true static content, but if most of your site is dynamically-generated, it can make sense. It removes the technology identifier from your URLs and means that you can more easily alter the underlying language and keep the same URL structure. I generally use .htm everywhere even if my pages are almost always generated with PHP.

8:21 pm on Nov 19, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 25, 2002
votes: 0

Assuming you're talking about "blah.htm?12" and "blah.htm?14" producing different pages then generally it isn't HTML that does this, it's server-side scripting like PHP or ASP which allows the dynamic creation of HTML content.

(Okay, to a certain degree you could also do this sort of thing with javascript but it's nowhere near as elegant or practical.)

Just because a page has an .htm or .html extension doesn't mean that what you're actually looking at is actually a HTML page, a lot of the time the webserver has just been setup to make it look that way for the sake of simplicity.

There are lots of ways to learn PHP if that's the route you want to take, I'm sure the PHP forum [webmasterworld.com] here has advice on more than a few of them in its library section [webmasterworld.com].

- Tony

or if you just want to get dynamic functionality in apparently static looking pages then "what encyclo said" :)

9:17 am on Nov 20, 2004 (gmt 0)

New User

10+ Year Member

joined:Oct 18, 2004
votes: 0

Well thanks for your cooperation.

But i need to MAP asp pages and my hosting platform is Windows 2003 server,so what should i do with it to convert in htm or html.

I just want to hide my original fils.

waiting to c u around.