changed error pages to php extensions