This is my error page i dont know exactly what is but i want to redirect this kind of error to 404.html page:
- I have created a 404 error page name "404.html". I want to redirect to this if no file or folder exist in my server.
- Where do I have to place this page (404.html)?
- Is it possible to redirect this page in .htaccess (or possible with only .htaccess)?
- If is there anything more about 404 page let me know, I want to grab the knowledge.
And don't vote me down if possible of copy!
I want to map one error document file for 404 500 i am trying with this code.
ErrorDocument 404 /404.html
ErrorDocument 500 /404.html
RewriteEngine On
RewriteBase /
# map them to one error document:
RewriteCond %{REQUEST_URI} ^/404/$ [OR]
RewriteCond %{REQUEST_URI} ^/500/$
RewriteRule ^(.*)$ /404.html [L]
I tried this code and uploaded the file in main folder www.website.com/404.html