Set up a Custom Error Page

You are here:
< Back

You can create a custom error page and set up OpenLiteSpeed to display it for visitors who encounter errors (such as 404). This is how.

Create Custom Error Page

Create a custom error page and visit the URL to make sure it works.

Configure OpenLiteSpeed Virtual Host

From the WebAdmin Console, navigate to Virtual Hosts and press the configuration icon.

Navigate to General > Customized Error Pages and press the + button.

Select the appropriate Error Code (in this example, we are choosing 404 Not Found) and enter the URL to the custom error page.

Restart the Server

Save the setting and restart OpenLiteSpeed in order for the changes to take effect.

Now, whenever a visitor triggers a 404 error, the page will be redirected to 404.html.