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?
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?
1. Make .htaccess document.
2. Write there:
3. Make file that you writed.Code:ErrorDocument 404 /yourfile.html
P.S. yourfile.html - changeable![]()
techietim (07-03-2008)
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.
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.
IllustriousLyts, <style>ErrorDocument 404 /layout/error.html you wrote it?
Go to top you will see, you need:Without <style>.Code:ErrorDocument 404 /layout/error.html
And traq is correct too...
the .html thing worked but it only works with mozilla and not IE. its werid :/
it seems you have only:
i'd start by adding the <html>, <head>, and <body> tags to your page. that might improve things a bit.Code:<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 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:
Try adding complete html page formatting, like so:Code:<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>
Code:<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>
Bookmarks