MyBB Community Forums
Custom 404 - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Support (https://community.mybb.com/forum-72.html)
+---- Thread: Custom 404 (/thread-14035.html)



Custom 404 - AzureGameZ - 2006-11-24

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


RE: Custom 404 - Christian - 2006-11-24

I think this is what you want: http://mods.mybboard.com/view.php?did=274


RE: Custom 404 - AzureGameZ - 2006-11-24

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?


RE: Custom 404 - Christian - 2006-11-24

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.