HTML file is not accepted¶
Description¶
Uploading an HTML file for a custom error page or a maintenance page fails. Depending on the cause, one of the following messages appears:
- Unable to upload <file name>. Only .html or .htm files are supported! — the file has a different extension.
- <file name> doesn't contain HTML code! — the file contains no readable HTML code.
- Your HTML code is invalid. Please fix it before saving. — the HTML code entered is faulty.
A custom error page and a maintenance page always require a valid HTML page. Entries with missing HTML pages or HTML pages without a valid structure cannot be saved.
Resolution¶
Proceed as follows to resolve the error:
- ► Save the page as a file with the extension
.htmlor.htm. - ► Check that the file contains a complete HTML document.
- ► Correct faulty markup in the HTML code.
- ► Upload the file again, see section Add custom error pages and section Add a maintenance page.
- ➔ The entry can be saved.