Add .htacces, make try catch so that error can explicit on the browser