PDA

View Full Version : contract work...


motiv8x
09-03-2003, 19:09/07:09PM
I'm available for contract work, if anyone needs some perl scripting done!

rockynate
01-04-2003, 01:58/01:58AM
I have a quick question:

I have a cgi script that needs to reside in a certain location on my site, but I have a lot of requests for the file coming in to another location-

I'm an old batch file guy and assume you can just place a filename at the requested location that would redirect to the new location.

i.e.: /cgi-bin/newstuff/stuff.cgi is where it is now
some requests still come in looking for /cgi-bin/oldname.cgi

Can you create a file called oldname.cgi that will redirect to the new file?

Thanks in advance.
Nathan

motiv8x
01-04-2003, 11:54/11:54AM
If you're on UNIX, this is simple enough...just create a symbolic link:

ln -s ./newfile.cgi ./oldfile.cgi

If you're not on unix, I'm not sure how to do it other than writing a script which redirects:

print "Location:/path/to/newfile.cgi\n\n";

rockynate
01-04-2003, 12:50/12:50PM
Yes, it's Unix.

So I don't quite understand...

Do I create a file named oldfile.cgi that contains the line:

ln -s ./newfile.cgi ./oldfile.cgi

?

PM me if you'd like a $50 account credit at my PPC search engine as a thank you...