Your website displays a "404 File Not Found" error whenever a visitor
tries to access a page on your site that doesn't exist. This could be
because they followed an old link, misspelled the URL, or the page was
moved or deleted.
You can replace the default 404 error page with one of
your own. Your page could include a search form for your site and link
users to your website's home page.
Here's how to display your own 404 error page:
- Make the page you want to use for 404 errors and save it as
404.html
. -
Open Windows Notepad, and type in the line below:
ErrorDocument 404 /404.html - Save the file as
.htaccess
. - Upload
404.html
and.htaccess
into the folder on your server where your website's home page is located.
Now whenever a visitor goes to a missing page, they'll see
404.html
instead of the server's default 404 error page.
Comments
Post a Comment