Rewrite Endpoint Url without ? before endpoint

Ok, I got it, thanks for the point in the right direction guys!

add_rewrite_rule('^members/([^/]*)/([^/]*)/?', '^members/$matches[1]/?$matches[2]', 'top');

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)