logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: apache error page
Author
mattsnow



Joined: 11 Dec 2007
Posts: 6
Location: england

PostPosted: Tue 11 Dec '07 23:29    Post subject: apache error page Reply with quote

I've got custom error pages setup, including the htaccess file, but when I try and test it out it comes up with a page and all it says is the name of the error file, like if its a 404 the page says 404.html (the name of my custom 404 error page). Any ideas why it does this? You can view it at:

http://81.77.66.147/nonexistent.html

and whats supposed to come up:

http://81.77.66.147/404.html

usual url is http://mattsnow.co.uk/ but just changed nameservers might take a while to update.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Wed 12 Dec '07 10:49    Post subject: Reply with quote

Your config is ok! it works correct.
If you which 404.html in the URL you need a redirect in the 404.html

you may use

ErrorDocument 404 /404.php

inside the php you can redirect to the 404.html

I don't see there a need for it, but if you want to just do it.
Back to top
mattsnow



Joined: 11 Dec 2007
Posts: 6
Location: england

PostPosted: Wed 12 Dec '07 19:27    Post subject: php Reply with quote

I don't really want to install php, is there another way?
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3092
Location: Hilversum, NL, EU

PostPosted: Wed 12 Dec '07 20:14    Post subject: Reply with quote

Example for a redirect in HTML:

<!doctype html public "-//IETF//DTD HTML//EN">
<html>
<meta http-equiv="Refresh" content="0; URL=http://www.xxxx.com">
</html>
Back to top
mattsnow



Joined: 11 Dec 2007
Posts: 6
Location: england

PostPosted: Wed 12 Dec '07 20:34    Post subject: Reply with quote

i fixed it by changing a line of code in the htaccess file like this:

ErrorDocument 500 500.html

to this

ErrorDocument 500 http://mattsnow.co.uk/500.html

thanks for your attention anyway, everyone
Back to top


Reply to topic   Topic: apache error page View previous topic :: View next topic
Post new topic   Forum Index -> Apache