404

I have a 404.html page in the root directory which is working fine
http://www.gumtarget.co.uk/test.html

But when an incorrect url is used within another directory the css isn’t being picked up.
http://www.gumtarget.co.uk/the-issue/test.html

Would I need to create a 404 page for each directory in the site to get this working?

Nathan Garner
Creative Director

Austin Wells Design Limited
One Elmgate Drive - Littledown - Bournemouth BH7 7EF
t 01202 301271 e email@hidden w http://www.austinwellsdesign.co.uk

Member of NAPP | Zen Affiliate | Dorset Business Member | YEC


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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!)


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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
file.
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;


<base href="http://www.gumtarget.co.uk">

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.
Regards,
Tim.

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!)

FreewayActions.com - Freeware and commercial actions for Freeway
Express & Pro.

Protect your mailto links from being harvested by spambots with Anti
Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

This seems to be work perfectly. Is there anything we need to worry about for this breaking actions?

Christian


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Christian,
The base tag shouldn’t upset any other Actions unless they also are setting their own base - which is, at least currently, unlikely.
Regards,
Tim.

On 26 Mar 2011, at 01:32, TeamSDA wrote:

This seems to be work perfectly. Is there anything we need to worry about for this breaking actions?

FreewayActions.com - Freeware and commercial actions for Freeway Express & Pro.

Protect your mailto links from being harvested by spambots with Anti Spam.
Only available at FreewayActions.com

http://www.freewayactions.com


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Hi Tim,

If you know of an action that could do this that would be great.

Thanks for your help,

Christian


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

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!
Tammy


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

I typed the text, selected it > Edit > Hyperlink > External > File > and then browsed for and selected the file on my computer.

This method only links to the file on your computer using a local path - when the page is on the server the link cannot work using a local path - the file is still on your computer.

Use one of the Link to PDF actions and then the PDF is uploaded for you - or use a full URL to the file where you have put it on the server.

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options