Php function 301 redirect

There is nothing wrong with wp_redirect part of your code…

But… is_page function can’t be used with URL address… You should pass “Page ID, title, slug, or array of such” as stated in documentation.

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