php - Custom error response without htaccess -


I know how to create a custom error page using an APAC's HTAC file:

 < Code> ErrorDocument 403 /error.php ErrorDocument 404 /error.php ErrorDocument 500 /error.php  

But is it possible to have a custom error page without using the htaccess file?
I have access to the server and all its settings

You can get the same code within your Apache virtualhost You can use; It will have the same behavior.


Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -