Grab last part of the url inside rule

doesn’t it work get_query_var('u') to grab the variable ?

Also you need to use – "index.php?pagename=search-result&u=". '$matches[1]' , single quote surrounding $matches[1].

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