miniBB ®  
miniBB Support Forums
 | Forums | Register | Reply | Search | Statistics | Manual |
Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications /   

Error page 404

Author jmcwebtrip
Registered
#1 | Posted: 14 Apr 2012 22:33 | Edited by: jmcwebtrip 
I see that the script does not have a custom error page 404. Some times there are users who post post that are spam or are out of context. Removing them does not exist a page indicating that the page does not exist, I think it would be a good idea to create a custom error page and apply to .htaccess this code:

ErrorDocument 404 http://site/error404.php


Author Paul
Lead Developer
#2 | Posted: 17 Apr 2012 09:44 | Edited by: Paul 
jmcwebtrip:
Removing them does not exist a page indicating that the page does not exist, I think it would be a good idea to create a custom error page and apply to .htaccess this code

It's not mandatory. Supposing the page is not found, the Apache server already reports "404" header to the browser or search crawler. Seeing that, search crawler will delete this page from it cache and it won't appear there again until it appears on the website (in most cases, it won't never appear).

ErrorDocument directive is mostly used for overriding default 404 pages. If you are happy with the default one, there is nothing to touch.

Additionally, let's not forget it won't work on all servers, but only there where it's allowed.

Custom Tutorials and Modifications miniBB Support Forums / Custom Tutorials and Modifications / Error page 404 Top
Your Reply Click this icon to move up to the quoted message
 Short link for this topic:

 ?
You are welcome to post anonymously, by entering a nickname with no password (if the similar Username has not been taken yet), or by leaving both fields empty. If you have a forums account, you can also sign in from this page without posting a message, or sign in and post at once.


Before posting, make sure your message is compliant with our forum posting rules. If not, it may be locked or deleted with no explanation.
 
miniBB Support Forums Powered by Forum Software miniBB ® Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contacts
  Extend your miniBB-forums, attaching the images and files,
get the File and Picture Attachments add-on!
Galleries / Attachments Addon for miniBB