Updating directory and redirect