added error pages and updated .htaccess