Custom Rewrite Rules

Within your rewrite() method add:

add_rewrite_tag('%state%','([^&]+)');
add_rewrite_tag('%city%','([^&]+)');

That will keep the query_vars you added within the url, and prevent it from being stripped.

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