Added .htaccess files
Again
Fixed access permissions and gitignore to ignore tmp