Excluding .idea, media and htaccess