Jump to content

Custom 404 not working


Recommended Posts

NOTE: This should be in the Apache Server forum! Please delete and apologies for my error.

 

I'm trying to get an Apache/2.0.54 server to use a custom 404 page so that I can provide visitors with links to the homepage, sitemap, etc of a website. Problem is that it doesn't seem to be working as intended...I am still getting the standard 404.

 

I've made a file .htaccess which contains:

 

ErrorDocument 404 /custom404.php

 

I've made a file custom404.php in the same directory which uses the site's default layout but with text warning that file not found, links to other places, etc.

 

The website is hosted on a server that hosts several other sites. The directory structure for this website is as follows:

 

WEBSITENAME

>cgi-bin

>homes

>logs

>public_html

 

All the content for the website is contained in the public_html directory. This is where I have both the .htaccess and custom404.php files.

 

Hopefully someone can shed some light on this problem. Thanks

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.