check for exact query string otherwise redirect