php.cgi relative links
Posted by: bblgun
Posted on: 2006-09-07 19:57:00
Hi.
I was wondering if anyone here know why php (or something else) would parse a relative url with the "php.cgi" extensions.
Reason is, I moved a script from a previous host to a dreamhost server, and certain links are not working.
The problem is the links (script generated) end up something like:
"http://www.site.com/scriptfolder/php.cgi?dir=Statues-Estatuillas"
Which generates a 404, since the script is just called index.php.
It should be:
"http://www.site.com/scriptfolder/index.php?dir=Statues-Estatuillas"
The part of the script that is in charge of this starts somehow like this:
echo "<a href="?"
and concatenates the rest of variables needed...
If more info is needed please let me know. I haven't been able to find much info about this, and I'm still not that much of a pro in php coding =)
Thanks for your reply.