MyBB Community Forums

Full Version: Changing the error page using codes
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hey is it possible to modify the template of the error page using codes?
Error Page = Invaild Link in my web like dis
http://nc-gaming.gegahost.net/haha.php
for example
Look into using .htaccess to handle 404 errors. You can set documents for each status code.
(2014-07-21, 05:32 PM)dragonexpert Wrote: [ -> ]Look into using .htaccess to handle 404 errors. You can set documents for each status code.

Can you give me an example of how can i do 404 error for invaild link in my web like the one i gave you above (http://nc-gaming.gegahost.net/haha)
Follow this guide.
(2014-07-21, 06:04 PM)dragonexpert Wrote: [ -> ]Follow this guide.
Where shall i create errors directory and put notfound.html in
Shall i create the directory inside of httadocs or outside
The errors directory should be in your httpdocs or public_html folder depending on your server. If it was outside that directory, it wouldn't be accessible. :p
(2014-07-21, 09:56 PM)dragonexpert Wrote: [ -> ]The errors directory should be in your httpdocs or public_html folder depending on your server. If it was outside that directory, it wouldn't be accessible. :p
in my host there is no public_html or httpdocs

I have:
The URL of the Forums ==> httadocs ==> MyBB Files
Nothing Else

What can i do
Create a file called 404.php and place it in the same directory as your forum. Then put the following code in .htaccess:

ErrorDocument 404 http://www.yoursite.com/forum_directory/404.php
(2014-07-21, 10:22 PM)dragonexpert Wrote: [ -> ]Create a file called 404.php and place it in the same directory as your forum. Then put the following code in .htaccess:

ErrorDocument 404 http://www.yoursite.com/forum_directory/404.php

I have .htadocs only , so shall i put the 404.php in it?

look thats my website http://nc-gaming.gegahost.net
What i have in FTP is
nc-gaming.gegahost.net ==> httadocs ==> The MyBB Files

So shall i put a file called "404.php" inside of httadocs and put the following code?
ErrorDocument 404 http://nc-gaming.gegahost.net/index.php/404.php

ERROR TEXT
BU-MP
Any 1?
Pages: 1 2