Doubt on template insertion in website

Discussion in 'JavaScript' started by kks_krishna, Dec 25, 2006.

  1. #1
    Hi,

    I have one doubt on designing my website. When i am adding articles to my website i inserted into database and displayed it.But i have noticed in many of the websites, the link for articles and even blogging is .html file. But how they can include all the other common templates for website.

    for example this site : http://onjava.com/ (in this site everything blogging and articles are separate html files).

    How can we achieve this? Please guide me.

    Thanks,
    Krishna Srinivasan
     
    kks_krishna, Dec 25, 2006 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    I think you are asking about a feature called "url mod rewrite". The client uses a URL and the server transform that URL into another URL, usually a .php file or another server script file (.pl .jsp etc). That script file generates "on the fly" the .html file.
    The rules to make that URL transformations on servers usually are defined with "regular expression" inside a hidden file called ".htaccess".
     
    ajsa52, Dec 26, 2006 IP