What you're after is known as "URL rewriting" (makes URLs look more search-engine friendly, and allows URLs to remain constant even when the backend technology or filesystem layout changes). How you go about it depends on your server, and the details depend on just what you want written how. There are some threads on these forums (search for url rewriting), and here's a Google search that includes some articles and tutorials on how to go about the job.