MyBB Community Forums

Full Version: Custom error page?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
How do I make 404 error page to one I want? I currently use 000webhost but I'm chaging it, and it goes to "404 000webhost page could not be found" or something like that.

Also, I want this page appear when normal users tries to get to admincp by going to URL/admin.

This is how I want it to look like:

[Image: MeKml.png]
Use .htaccess file!
Example:
.htaccess
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
ErrorDocument 404 404.html
order deny,allow

make a new 404.html file!
(2012-11-12, 11:27 AM)tamnguyen949 Wrote: [ -> ]Use .htaccess file!
Example:
.htaccess
<Files ~ "^\.(htaccess|htpasswd)$">
deny from all
</Files>
ErrorDocument 404 404.html
order deny,allow

make a new 404.html file!

I've never edited htaccess. I don't know where to place that.
Put .htaccess in public_html/.htaccess
(2012-11-12, 11:48 AM)tamnguyen949 Wrote: [ -> ]Put .htaccess in public_html/.htaccess

No, I mean where do I place that code you gave me.
Any line! top or bottom Smile
(2012-11-12, 11:54 AM)tamnguyen949 Wrote: [ -> ]Any line! top or bottom Smile

It didn't work. It still goes to "http://error404.000webhost.com/?".
Clear cache and cookies! try again!
(2012-11-12, 11:58 AM)tamnguyen949 Wrote: [ -> ]Clear cache and cookies! try again!

I did, it didn't work :l
make sure .htaccess in root!
Pages: 1 2 3