remove public from index and ignore the directory