Strip query params when checking for index.html