adjusting routes so index.html is always served (may be necessary for SPAs)