Why is WordPress redirecting to homepage after GET form submit?

Your permalink structure appears to be incorrect try changing your code to. Modified, try creating a search form like this and see if you still get the homepage, if so then there will be something wrong with your theme templates.

<form method="get" action="https://wordpress.stackexchange.com/">
    <input type="text" name="s">
    <input type="submit">
</form>

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