change server so only sends index.html if path doesn't have an extension