Forum Moderators: phranque

Message Too Old, No Replies

301 redirect, technology changed

cgi to php

         

nakulgoyal

7:45 am on Mar 26, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I have a website where I use a custom coded cgi script.

It used to pull database like

domain.com/cgi-bin/browse.cgi

and when passed like

domain.com/cgi-bin/browse.cgi/productid/
or domain.com/cgi-bin/browse.cgi/catid/
or domain.com/cgi-bin/browse.cgi/catid/productid/

it will work.

Now, this application was done a couple years back, and was a very very hungry for server resources.

Our new programmer did a php equivalent for the same database, and now

domain.com/cgi-bin/browse.php works

and
domain.com/cgi-bin/browse.php/productid/
or domain.com/cgi-bin/browse.php/catid/
or domain.com/cgi-bin/browse.php/catid/productid/

all work.

I did a mod_rewrite to maintain all listed pages, and

with that,

domain.com/cgi-bin/browse.cgi works, but when I pass it any catid or productid as above, it does not work. Can anbody recommend me the correct mod code?

sitz

3:31 pm on Mar 26, 2005 (gmt 0)

10+ Year Member



If you post the code you're using now, we can make suggestions. =)