error handling for htaccess - improvement