I have a hosting account with a domain pointer for one of my websites.
For argument's sake the username on the account is 'chris' and the website is 'foo'.
I'm attempting to use what I thought was a simple link/href to a style sheet that is found in my phpBB directory:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link href="/home/chris/public_html/foo/forum/styles/AutoWidth/theme/normal.css" rel="stylesheet" type="text/css" title="A" />
<title>My Title</title>
</head>
<body>
<p>Hello World</p>
</body>
</html>
The mixed case of that href tag matches exactly the directory structure on the server.
When the page renders, the style sheet is not loaded. Firebug tells me this was the response to trying to get to the style sheet:
The requested URL /home/chris/public_html/foo/forum/styles/AutoWidth/theme/normal.css was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Yes, I realize I can use the URL form for the href, but this is only a small piece -- I have PHP includes I need to reference as well, and I don't want to get into using Curl or turning on any PHP options that allow remote code injection to my site.
Anyone have any idea why that simple absolute path reference in my href tag is not working? If I use relative path (e.g. '../forum') then it works fine. I'm a newbie to this and I've burned up two solid days trying to figure it out.
Just to make sure it's not a permission problem I changed that path and file to 777. Still no joy.
Thanks,
Chris