Good day!
I have a custom error page:
In mod_rewrite:
/404/
In absolute path:
/path/to/404.php
When I tried to enter something like this:
https://www.domain.com/some-unknown-thing/
The custom error page works, but when I tried this:
https://www.domain.com/unknown-file.php
It will be redirected to the default error page of litespeed.
Here is the code I am using in .htaccess:
ErrorDocument 404 /404/
What is the reason? I want all errors to redirect to my custom error page, thank you.
I have a custom error page:
In mod_rewrite:
/404/
In absolute path:
/path/to/404.php
When I tried to enter something like this:
https://www.domain.com/some-unknown-thing/
The custom error page works, but when I tried this:
https://www.domain.com/unknown-file.php
It will be redirected to the default error page of litespeed.
Here is the code I am using in .htaccess:
ErrorDocument 404 /404/
What is the reason? I want all errors to redirect to my custom error page, thank you.