Hello all, My website was hosted in windows server and it was build in HTML, only feedback page is build with PHP. I wan to know , how to create a 404 error page redirection in my HTML website ? Thanks in advance rrmch.org
You can place the 404 error template anywhere you want. For example you could place all error messages in a folder called errormessages
Creating and uploading a 404.html file is the first step. You will also need to ensure your htaccess file contains the code: ErrorDocument 404 /404.html Which will direct any visitors to your 404.html page should an error occur.
You can also redirect the user to your home page this way. In your .htaccess file: ErrorDocument 404 /index.html Code (markup):
The Error 404 "Page not found" is the error page displayed whenever someone asks for a page that’s simply not available on your site. The reason for this is that there may be a link on your site that was wrong or the page might have been recently removed from the site. As there is no web page to display, the web server sends a page that simply says "404 Page not found"
I hope this will work: If you have access to the server then you can create a 404 by going to your properties for the WWW service, go to the Custom Errors tab and just select the file you want to use for you 404 at the 404 box! If its only cPanel access then just go to the Error Pages button, and select 404 (wrong page) and you can insert html there. Please let me know if it works, I have unix server so can't try it.