PDA

View Full Version : 404 redirections in server requests ? (or just a mapped directory)


Due
01-07-2001, 06:17 AM
I have a problems setting up a script on my server. Problem is that it should share a DB with another script.
But both scripts read from
/home/domain/script1/db
and
/home/domain/script2/db
Now I wanna setup a mapped link so requests for reading in dir /home/domain/script2/db will be forwarded to /home/domain/script1/db
Like a sort of 404 redirects. Just with server paths instead. Can anyone tell me how to do this? http://adultwebmasterinfo.com/ubb/confused.gif

Brian911
01-07-2001, 07:52 AM
print "location: $home_dir/script1/db" ;

I dont understand your problem... what do you need, anything special?!

Due
01-07-2001, 08:09 AM
I don't need a http redirect..
Then I would use .htaccess
I need it for a TGP script that should use the same DB for 2 installs.
I can cannot find the place where it load the DB path in the script.
So I just wanna forward requests going to that directory to the other directory

Brian911
01-07-2001, 08:15 AM
umm you use AutoGallery dont you?
I might be wrong but there should be an option to change the DB path anywhere in the admin table

Due
01-07-2001, 08:37 AM
Figured it out http://adultwebmasterinfo.com/ubb/smile.gif
I was editting the wrong files http://adultwebmasterinfo.com/ubb/smile.gif

Coke
01-07-2001, 08:38 AM
Simply set up a symbolic link so that /path1 points to /path2

In telnet type:
ln -s /path2 /path1
and you're done.