Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: apache error page |
|
Author |
|
mattsnow
Joined: 11 Dec 2007 Posts: 6 Location: england
|
Posted: Tue 11 Dec '07 23:29 Post subject: apache error page |
|
|
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
|
Posted: Wed 12 Dec '07 10:49 Post subject: |
|
|
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
|
Posted: Wed 12 Dec '07 19:27 Post subject: php |
|
|
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
|
Posted: Wed 12 Dec '07 20:14 Post subject: |
|
|
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
|
Posted: Wed 12 Dec '07 20:34 Post subject: |
|
|
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 |
|
|
|
|
|
|