Fix URLRewrite filter when there is no '/' in the filename
Remove unused variables