I came up with a very hacky solution for this kind of thing, for a server where I didn't have access to mod_rewrite or whatever.

Instead of

   website.com/cgi-bin/script.cgi?id=1
   website.com/cgi-bin/script.cgi?id=2
   website.com/cgi-bin/script.cgi?id=3

I created

   website.com/1/
   website.com/2/
   website.com/3/

where the /1/ folder contained "index.shtml" and "index.shtml" contained

  <!--#include virtual="/cgi-bin/script.cgi?id=1"-->

and so on.

It's not a great solution for a site that needs updating all the time, but as a quick-and-dirty solution it worked very well.

One side effect of this that nobody's mentioned of course is that search engines don't know it's a dynamically-generated page and are therefore more likely to index it.
------------------------------------------------------------
"Have You Validated Your Code?"
John Horner (+612 / 02) 9333 3488
Senior Developer, ABC Online http://www.abc.net.au/
------------------------------------------------------------
******************************************************
The discussion list for http://webstandardsgroup.org/


See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************



Reply via email to