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)
(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