Gossamer Forum
Home : Products : Links 2.0 : Discussions :

probelm with addresses

Quote Reply
probelm with addresses
When I set up Links it worked fine. Now for some reason when I go to one of my Links pages and click on New, Popular, etc.. it can't find it because it is using my actual FTP directory. The one I connect to to upload and so forth. Everything is set right in my configuration file. All I can think of is to put the absolute address in all my template files and I don't really feel like it. Basically it would be apain on pages that are a directory or two deep. Any suggestions.
Quote Reply
Re: probelm with addresses In reply to
What you need to do is use the relative/virtual addresses and physical/absolute paths for your files and directory paths in the links.cfg file. It seems that you are using ONLY absolute/physical paths and that is why your web browser is searching for directories in your web account, not the virtual address of where the files are located.

For example, you should use the following directory paths in your links.cfg file:

Code:
# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/path/to/cgi-bin/links";
$db_dir_url = "http://www.mydomain.com/cgi-bin/links";

# URL of User CGI directory. No Trailing Slash.
$db_cgi_url = "http://www.mydomain.com/cgi-bin/links";

# PATH and URL of Pages to be built. No Trailing Slash.
$build_root_path = "/path/to/links";
$build_root_url = "http://www.mydomain.com/links";

# PATH and URL of What's New page. No Trailing slash.
$build_new_path = "$build_root_path/new";
$build_new_url = "$build_root_url/new";

# PATH and URL of What's Cool page. No Trailing slash.
$build_cool_path = "$build_root_path/cool";
$build_cool_url = "$build_root_url/cool";

# PATH and URL of What's Rating page. No Trailing slash.
$build_ratings_path = "$build_root_path/ratings";
$build_ratings_url = "$build_root_url/ratings";

Make sure that you have no trailing slashes for each directory path.

Hope this helps.

Regards,

------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us