MyBB Community Forums

Full Version: Custom 404
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
If you are in a directory part of the forum that isn't accessible, how do you make a custom Error 404 page for it?

Just wondering how. Smile
I think this is what you want: http://mods.mybboard.com/view.php?did=274
Okay! But one thing:

CraKteR Wrote:1) Change .htaccess to suply with your adresse, if you got an adresse like www.mcdcpp.net/forum. then you need to change the file

How do you change the .htaccess file?

Also, can I edit the source, so I can add my own content for the error pages?
Assuming your board url is: http://gmqa.64digits.com/forums/
You need to edit the .htaccess file using something like MS NotePad. Use the following code:
ErrorDocument 400 /forums/error.php
ErrorDocument 401 /forums/error.php
ErrorDocument 403 /forums/error.php
ErrorDocument 404 /forums/error.php
ErrorDocument 500 /forums/error.php

You'll need to edit the template and possibly edit the language file.

Also, moving to Code Mods.