Page 1 of 1

a href broken - need help

Posted: Mon Aug 25, 2003 12:51 pm
by randallcovert
When I try to use a link such as;

<a href="default.php">Home Page</a>

it doesn't provice the page. Instead it gives me the following error;

Object not found!
The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster
Error 404
http://www.operations.followuptools.com
Mon 25 Aug 2003 10:41:53 AM MST
Apache/2.0.40 (Red Hat Linux)

Could you please tell me if I have to turn something on in Apache 2.0.47 or in php?

Thank you in advance for your assistance.

Randy Covert

Posted: Mon Aug 25, 2003 1:01 pm
by nigma
The only thing I can think of is that the page "default.php" doesn't exist.

Posted: Mon Aug 25, 2003 1:05 pm
by randallcovert
The file "default.php" exists in the root web directory. I already checked that. Any other suggestions?

Randy

Posted: Mon Aug 25, 2003 3:57 pm
by bungle
why dont you try adding a "/" then to make sure:

<a href="/default.php">Home Page</a>

Posted: Mon Aug 25, 2003 4:57 pm
by mcsleazycrisps
or is the default.php file outside the web root?

often hosts have a "public_html" or "httpdocs" directory on their FTP server where you should put all files you need to access directly from a browser.

Posted: Tue Aug 26, 2003 11:05 am
by m3rajk
bungle wrote:why dont you try adding a "/" then to make sure:

<a href="/default.php">Home Page</a>
NEVER do
unix starts it's path with / so doing that can screw with the path internal to the server. it's not good to do. if you want it to be in THIS folder you should use ./ if you want it one folder up relative to this one ../