wp_redirect only works for external pages

Next should be in a comment, not in a answer, but is too long, so I’m sorry posting here and hope it helps.

You don’t post the code, but it seems you are experiencing and endless redirect.

Usually this happen when:

  1. The page is opened, user is not logged and so redirect
  2. The page is opened again, user is not logged and so redirect again

Luckily TOO_MANY_REDIRECTS error come or point 2. will repeat endless.

You have 2 solutions:

  1. When redirect from a page, make sure to redirect to a page that not trigger the redirect again
  2. If the previous is impossible add to redirect url a variable like ‘?noredirect=1’ and before redirect check for this $_GET var

If I’m wrong, please post the code and debug informations and maybe someone can better help you.

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