FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


CUSTOM ERROR PAGES





Aelita
Well this isn't really a tutorial, but this is the best place for this.

all you have to do is make an html document with how you ant it to look (the error page that is) and save the fil as 404.shtml->url not found error document

Example:
Code:
<title>Closed</title>
<body background="images/Closebg-Aelita.jpg">
<table width="100%" height="310" border="0">
  <tr>
    <td width="23%" height="21">&nbsp;</td>
    <td width="77%" valign="top"><div align="right"><em><font color="#993366"><strong>404 Error
       The URL doesn't exist on this site please report this to
       us if you clicked a link from the site</strong></font></em></div></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>


Other errors include
403.shtml ->forbidden
401.shtml ->unauthorized
400.shtml->don't remember
500.shtml->don't remember

ENJOI
xorcist
An easier way to do taht is go into Cpanel and go to your Error Pages and make custon ones from there.Its the same things but you dont have to upload it just press save and it automatically makes the error page.
Aelita
Alright this is the second time you've decided to try and say Im incompetent or something. These are just tutorials. Yes there are many different ways of doing things. But I'm trying to show alternatives and teach people how to do things. I'd appreciate it if you stopped posting crap like this in my topics. Thanks much... Evil or Very Mad
SamiTheBerber
I always do that so:
1. I make a section in my index.php, like index.php?page=error.
2. I configure .htacces so that first line has 'ErrorDocument 404 /index.php?page=error'
3. I upload .htaccess with FTP-client to FriHost-server and then it works Very Happy

More tutorials can find with Google

If you need help, use Google. Without answer search this forum, and then ask us Wink
supjapscrapper
SamiTheBerber wrote:
I always do that so:
1. I make a section in my index.php, like index.php?page=error.
2. I configure .htacces so that first line has 'ErrorDocument 404 /index.php?page=error'
3. I upload .htaccess with FTP-client to FriHost-server and then it works Very Happy

More tutorials can find with Google

If you need help, use Google. Without answer search this forum, and then ask us Wink


This is the first time that I hear of this method. I used to just write an static html file error.html and it was managed by default.
maybe it is default bahaviour from the seb server to look for this kind of pages.
n0obie4life
Cpanel spoonfeeds Wink

Learning the hard way is always better.
Related topics
.htaccess tutorial
Features of FRIHOST
Custom error pages using .htaccess
how can i have 2 sets of error pages
Addon Domains?
Message boards
Best Freeware
Custom Erro pages?
creating error pages
Replace the 404 ERROR PAGE
Custom Error Pages
PHP Error Pages
Custom error pages problem
Error pages
Reply to topic    Frihost Forum Index -> Miscellaneous -> Tutorials

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.