Changed permission and added htaccess files