fixing so index.html pages are handled correctly