404 Error Handling

J

JW

Hello. I use a host (Winsave) that doesn't have custom error handling. Is
there a way to trap a 404 error and redirect it to a custom error page. I am
on a windows platform

Thanks
Jim
 
R

Ronx

Custom error pages on Windows servers require configuring the server
itself. You will have to ask your host.
On Unix servers it may be possible to use the .htaccess file - but
this may effectively destroy the FrontPage extensions.
 
S

Steve Easton

Doesn't require messing with .htaccess on a UNIX.
You create custom error pages via the control panel and then you can edit
them using FrontPage.


--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed............
........................with a computer
 
R

Ronx

Depends on the host and control panel. My old Unix host gave
instructions for editing the .htaccess file, along with dire warnings
about breaking the extensions. The Control Panel did very little.
 
P

p c

google for "ASP custom error page" (without quotes).

Since you are using a host, you will need to ask them to checng the IIS/
site setting from the default error handling to your new custom page.

...PC
 
J

Jim Carlock

From the little that I know of .htaccess files, they work as
follows.

..htaccess needs to be enabled first in the httpd.conf file. The
..httpd.conf contains lines as follows for this purpose:

<snip>
#
# This controls which options the .htaccess files in directories can
# override. Can also be "All", or any combination of "Options", "FileInfo",
# "AuthConfig", and "Limit"
#
AllowOverride All
</snip>

IF it's set to All, .htaccess goes into affect and Apache parses each
applicable folder looking for it. If it's set to None, Apache parsing
for .htaccess gets turned off.

Enabling .htaccess mean that the Apache server then parses each
subfolder looking for an .htaccess file. The root .htaccess could be
used to supply 404 Error Handling, but some other things need to
get set up as well I believe.

Apache by default enables displaying the contents of a folder instead
of delivering a 404 Error Message. I believe that needs to be turned
off, so correct me if I'm wrong. To do this, edit the httpd.conf file and
comment out the following line:

AddModule mod_autoindex.c

so it appears as such:

#AddModule mod_autoindex.c

I haven't quite made it to the point to get Custom 404 working, so
if anyone can add to this, that would be great. I'm currently working
on some issues with virtualhosts.

Hope this helps.

Jim Carlock
Post replies to the newsgroup.
 
R

Ronx

To add an error document to a .htaccess file, all you need is to add a
line similar to:

ErrorDocument 404 http://www.example.com/error404.htm

where 404 is the error, and http://...... is the error document..
This must go after any other entries in the file made by FrontPage

..htaccess must be enable, but this is the default for Unix/Apache.
AFAIK, No other additions are required.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top