How can I rewrite a URL to pass requests to a custom method via AJAX? (I can’t use admin-ajax.php)

You can simply target to a custom file when using wp_localize_script(). Just – in the third argument-array – set ajax_url to whatever file you want to target.

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