I’m trying to use custom 404 page on my website. In my htaccess I added ErrorDocument 404 /404.php
but it has no effect. I get some standard page that says “File not found”. I also tried ErrorDocument 404 https://www.domain.com/404.php
and Services > Configure SSL website > Error handling. No result. Not sure where this page is being loaded from and how to override it.
Are you purging your caches when you make the changes?
As a test, if you post the base url of your site, someone can visit yoursite.com/ql;erkkgjwoj and see what error they get. If it’s your custom error page, then it’s working and you have a caching error.
do it on Apache directories level or configs level… htaccess would not work on virtualhost level, that’s why it does work on local host not on virtualhost