This functionality may be easily added to the script in a following way:
1. Add to your .htaccess file following commands:
Code: Select all
ErrorDocument 404 /errors/404.php
ErrorDocument 500 /errors/500.php
ErrorDocument 403 /errors/403.php
Instead of /errors/404.php you may define another way (depends on your real path, for example: /php-microcms/errors/404.php etc.)
2. Create such pages for your site, place them in the directory that was defined on previous step and add all needed HTML code and CSS for them.