adding .htaccess-handling for multiple stages
added tmp to list of site-directories