View Full Version : local / offline 404 page
06-03-2010, 06:27 AM
I am trying to implement a 404 page for a local / offline website if there is a dead link or such, but cannot get it to work locally, but only in an online environment... are there different settings / code to achieve this?
The .htaccess file includes the following:
ErrorDocument 404 /notfound.html
notfound.html and .htaccess are stored in the parent file directory.
We tested the 404 in an online environment, and everything was functional.
Would there be any issue with creating a 404 page for an offline directory, and how could this be overcome?
06-03-2010, 09:46 AM
notfound.html and .htaccess are stored in the parent file directory. parent of what? Could you please show your local directory structure ?
06-06-2010, 02:14 AM
parent of what? Could you please show your local directory structure ?
Sorry for the delay of my response.
All files are stored in a directory, locally.
Here is the directory structure within this folder
Google Chrome points directly to index.html as the home page.
Just a reminder - the 404 error pages DOES display when uploaded to a server on the internet, but will not display if the browses reads the files from a local directory.
06-06-2010, 02:54 AM
Maybe it is possible to change Google Chrome's built-in 404 message to suit my needs? Any ideas?
06-06-2010, 11:49 AM
Do you have a local server in your machine? Are you accessing the files directly or by typing the server path, like http://localhost or something like that?
06-06-2010, 10:07 PM
Chrome doesn't handle .htaccess files -- they're for the webserver configuration. As abduraooft mentioned, you need to be running a webserver(like WampServer, or XAMPP) (http://en.wikipedia.org/wiki/Comparison_of_WAMPs) locally and accessing it via http://localhost or http://your.local.ip.address -- not file:///path/to/file/.
06-08-2010, 04:38 AM
Will set this up, thanks so much. Will come back with any issues.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.