Fix index.html internal redirects when there are query strings