View Full Version : cutom 404 error pic
ModernRevolutions
07-03-2008, 05:23 AM
I have a website (modernrevolutions.net) and when a page is messed up instead of it saying the default 404 error thing i want to make it a blank page with just a pic. Is there a code for that or something? What do i have to do?
allahverdi
07-03-2008, 05:35 AM
1. Make .htaccess document.
2. Write there:
ErrorDocument 404 /yourfile.html
3. Make file that you writed.
P.S. yourfile.html - changeable :)
It is also likely that your web host either
...1)has a feature that will do this for you automatically, or
...2)has a feature that does not allow you to do it at all.
Ask them before spending too much time on it.
ModernRevolutions
07-04-2008, 02:13 AM
http://www.modernrevolutions.net/wrong go to that too see what comes up when it says 404 error. I tried to put <style>ErrorDocument 404 /layout/error.html and it didnt work :/ what do i do?
well, since I get the normal 404 page, I couldn't tell you what might be wrong with your code. However, it seems you are hosted by 1and1 Internet...?
If so, the solution is simple, and you don't need to write your own .htaccess file. (Unless you're running the "Beginner" package, which doesn't support custom 404 pages at all.)
If you're running the "Home" package or higher, all you need to do is create your error page, name it "error404.html", and upload it to your root directory via FTP. 1and1 will write the .htaccess file for you automatically.
allahverdi
07-04-2008, 04:04 AM
IllustriousLyts, <style>ErrorDocument 404 /layout/error.html you wrote it?
Go to top you will see, you need:
ErrorDocument 404 /layout/error.html
Without <style>.
And traq is correct too...
ModernRevolutions
07-06-2008, 12:00 AM
the .html thing worked but it only works with mozilla and not IE. its werid :/
it seems you have only:
<center><a href="http://www.modernrevolutions.net"><img src="http://www.modernrevolutions.net/404images/heleft.png" border="0px"></a><br>click the pic to go back</center>
i'd start by adding the <html>, <head>, and <body> tags to your page. that might improve things a bit.
ModernRevolutions
07-07-2008, 09:03 AM
I tried alot and its not working in IE still lol here is the link www.modernrevolutions.net/wrong
When I look at your 404 source, all I see is this:
<title>modern revolutions™ WHOOPS!!! </title>
<style>body {background-color:131313;}</style>
<center><a href="http://www.modernrevolutions.net"><img src="http://www.modernrevolutions.net/404images/sorry.png" border="0px"></a><br></center>
Try adding complete html page formatting, like so:
<html>
<head>
<title>modern revolutions™ WHOOPS!!! </title>
<style>body {background-color:131313;}</style>
</head>
<body>
<center><a href="http://www.modernrevolutions.net"><img src="http://www.modernrevolutions.net/404images/sorry.png" border="0px"></a><br></center>
</body>
</html>
ModernRevolutions
07-08-2008, 09:14 AM
Just added that and it still doesnt work in IE. I hate IE!!!! lol its ruining everything *kicks IE*
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.