PDA

View Full Version : Address like "http://www.mysite.com/cgi-bin/script.cgi/var1/value1/var2/value2"


chrisvmarle
12-11-2002, 09:16 AM
Hi there, does anyone know how to make a script that can handle a URL like this:
"http://www.mysite.com/cgi-bin/script.cgi/var1/value1/var2/value2"

Do I need to configure anything in apache for this? To tell it that script.cgi is not a DIR but a FILE...

Thanks in advance
Mzzl, Chris

pb&j
12-11-2002, 04:52 PM
I don't know about apache settings but, I believe when a word is followed by the forward slash, that normally means that word is considered as a directory.

Perhaps you are looking for a solution to this?
"http://www.mysite.com/cgi-bin/script.cgi?var1=value1&var2=value2"

chrisvmarle
12-11-2002, 06:26 PM
Duh, I know that one, but I saw the forwardslash way on some sites and it made me very curious...