Hi guys this is a quick tutorial on how to do a automatic 404 error page with website x5, now we are doing it with website x5 evolution 13 but this will work with any version of website
You do not need to touch any of the scripts.
The demo button above is a page that does not exist on our fitness template but redirects directly to the 404 error page that we created for this specific tutorial.
I’m going to offer you a very basic fix to this problem, but you’d best ask your system people if they want you doing this first. Better yet, ask them if you might mess things up by doing this.
Your .htaccess File
This is the file that will do the trick for you. You should already have one waiting inside of your Web site directory. If you don’t, then you’ll need to create it.
FTP into your server so you’re looking at the top level directory where you store your Web page files. This should be the directory that contains your home page document. Look for the .htaccess file there. Again, if you don’t find it (it should be one of the very first files), then you’ll need to create it.
Please notice the dot (.) starting it off.
Here again is where you might have to get in touch with your systems people and ask them how they want you to edit or create this file. Some may allow you to do it like you would any other Web page, by creating a text document and uploading it, while others might want you to use a PICO editor and do it right on the server. It might be best not to guess at it.
Let’s Edit It
Add this to the .htaccess file:
|ErrorDocument 404 http://www.domain.com/404page.html|
…you have already created an error page, right?
Let’s Turn It On
If you already had an .htaccess page in your directory then chances are it’s already turned on. If not, you need to do that. If you’re using a UNIX server then you’ll need to access the server and type this command at the prompt:
|chmod 644 .htaccess|
Upload your new 404 error page, if you haven’t already, and log into your site. Then try to go to a page that doesn’t exist. You should get the page you denoted in the .htaccess file. If you don’t, first check to see if the file is turned on by trying the CHMOD again. If you still get nothing, then get back in touch with your system people and ask them for more specific help.
You’ll be the envy of people who go to non-existent pages everywhere.