Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I set up my own customized ErrorDocument for visitors who go to the wrong URL?

0
Posted

How do I set up my own customized ErrorDocument for visitors who go to the wrong URL?

0

An “ErrorDocument” is the message that you see when you try to go to a web page that does not exist. The default ErrorDocument message looks like this: File Not Found The requested URL /xxxxxx.html was not found on this server. (where xxxxxx.html is the name of the incorrect web page that you tried to visit). The above ErrorDocument is not very pretty, and you may wish to make one of your own. This is how you do it: Note: FrontPage users, please see below. First, make a web page, and give it a name you can remember, such as badurl.html. Second, check the directory structure of your site, to see if you have a file in your root directory (e.g., if your site is named xyz.com, then the name of the root directory would be xyz) with the name .htaccess. If you do not have such a file there, you will need to create the file with a simple text editor (such as MS Notepad for Win95 users or Simple Text for Mac users). If the file already exists, you will need to edit it with a simple text editor.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123