The page will look for the css file (and anything else referenced on
the page like images, scripts etc) based on the URL the user shown in
the browser. For example this, fictitious, page; http://www.gumtarget.co.uk/afolder/afile.html
can’t find the css because the path from this page won’t find the css
Either use an absolute path as Tog suggests or if this proves a
problem for integrated actions and other scripts then simply add a
base tag to the head of your document;
This will force the browser to think of all of the relative paths
defined in the document (css, scripts, images etc) as being relative
to this home directory. So even if someone tries to get to a file deep
in your site (buried in numerous folders) the 404 page will display as
if it were at the top level of your site and correctly connect to the
images, css, scripts etc that it needs.
On 1 Feb 2010, at 11:33, tog wrote:
I had this problem too, and fixed it. Simply use the full URL to
point to the 404 page, not a relative link.
(This was in a .htaccess file - I’m no expert so don’t know if there
are other ways!)
Well, I did a little searching here on FW Talk but don’t really understand what I read, so I’m hoping there is an easier solution.
On one page in my site, I have a list of links. I typed the text, selected it > Edit > Hyperlink > External > File > and then browsed for and selected the file on my computer. They all worked great last time I was in here. Tonight, I went back in and added a link the same way to some text that I didn’t have the document for before. These documents all all PDFs. After I added the link tonight, I clicked on Browser and checked the link. It worked, so I uploaded. I went to my Browser, typed in the URL for the home page, navigated to the page with the new link, clicked the new link . . . and received a 404 (Page not found) error. I checked a couple of other links that I know worked last time, and get the same error for them.
I thought maybe the problem was because I moved the folder in which I kept the uploaded documents. However, when I go to another page on the website, the links to PDFs from that page work, and those files were in the same folder as the other PDFs.
The site is akliteracy.org. To find the problem, navigate to News. From there, go to Meeting Minutes to find the links that don’t work and Newsletters to find the links that do work.
Hope you can help me with something I can understand!
Thank you for taking the time!