Fix endless digest loops occurring in IE due to location rewrites