Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

A problem with URLS

Quote Reply
A problem with URLS
I've searched the forums for info on this but couldn't find anything. Sorry if it's an often repeated question.

I've got links working now and it builds pages fine. The problem I'm having now is that the URLs to the add, jump, subscribe, modify, rate and search CGI files are wrong in the built pages.

For example, if I click on Add a Site, the url is

http://www.mydomain.com/cgi-bin/add.cgi instead of...

http://www.mydomain.com/cgi-bin/links/add.cgi


I'm presuming this is because I haven't defined the correct url or paths somewhere . I've checked my links.cfg and I have got the right urls and paths for these files, so I'm a bit confused. Could someone please point me in the right direction. Where do I need to make the changes?

thanks
Sara


Quote Reply
Re: A problem with URLS In reply to
In links.cfg re-check:

$db_cgi_url

Also check in your templates that your using for example:

<%db_cgi_url%>/add.cgi in your menu links

Glenn

Links 2 Mods Site:
http://cgi-resource.co.uk/pages/links2mods.shtml
Quote Reply
Re: A problem with URLS In reply to
Thanks Glenn, that's fixed it. I made the mistake of thinking that the $db_cgi_url was meant to be the URL to the cgi-bin instead of my links directory within the cgi-bin. Thanks again Smile , I'm finally getting somewhere.

Sara

Quote Reply
Re: A problem with URLS In reply to
Yes, the $db_cgi_url variable requires the URL of your Links2 cgi scripts and not your cgi-bin in general.

Paul
Installations:http://wiredon.net/gt/
Support: http://wiredon.net/forum/

Quote Reply
Re: A problem with URLS In reply to
You have probably NOT configured the $db_cgi_url variable correctly in the links.cfg file, which should be:

Code:

# No Trailing Slash
$db_cgi_url = "http://www.yourdomain.com/cgi-bin/links";


And then in your template files, you need to use:

Code:

<a href="<%db_cgi_url%>/add.cgi">Add Link</a>


As mentioned quite a few times in this forum and other LINKS 2.0 Support forums.

Regards,

Eliot Lee