Gossamer Forum
Home : Products : Links 2.0 : Discussions :

relative instead of absolute linking...help!!

Quote Reply
relative instead of absolute linking...help!!
I had to move a working link prog to a new server.
all seems to work fine..except the actual links. When they are clicked on..the adress in the browser window shows that the prog is trying to send me to the jump.cgi?(id) relative to the page I am calling it from.
ie www.links.com/pages/books/fantasy/index.html is where the link is....when I click on the link I am transferred to www.links.com/pages/books/fantasy/index.html/www.links.com/cgi-bin/jump.cgi?(id No)

when where I really want to go to is just www.links.com/cgi-bin/jump.cgi?(id No)


by removing the local page part...the links work fine..please help me find where to sort this out
Quote Reply
Re: [gestalt] relative instead of absolute linking...help!! In reply to
In your templates, try just using
Code:
<%db_cgi_url%>/jump.cgi?ID=<%ID%>

as the URL.

If you're still getting an error, then you have misconfigured links.cfg.

--Philip
Links 2.0 moderator
Quote Reply
Re: [King Junko II] relative instead of absolute linking...help!! In reply to
Thx....was a screwup on my part...now fixed
Quote Reply
Re: [gestalt] relative instead of absolute linking...help!! In reply to
this same error can be caused by mut using "http://" to specify your url in links.cfg

It tries to access it as another folder on your server by repeacing www.site.com/cgi-bin part of the url
Crazy