New Install - Using PHP no word press 404 pages not found

I’m using PHP to work on a site for my domain and just setup CyberPanel it’s awesome and easy to setup.

My problem is if I make a mistake and open a bad url that does not exist.
(Example: mynewdomain.com/no_webpage_here.html)
I get directed to (Example: mynewdomain.com/404.html) but the page file 404.html is not displayed and missing?


How can I fix this?

Thank you in advance.

You will have to create 404 template and add it in htaccess file as below:
ErrorDocument 404 http://yourdomainname/404.html
And restart Openlitespeed and see if it works.

1 Like

The worked perfectly!

Thank you!

1 Like