I noticed that that file indeed does not exsist.
There is an index.php that exists, manually changing the URL for the client panel works.
So how do I fix it redirecting to the wrong address and path ?
It was originally redirecting to the IP and index.html, I want it to redirect to the hostname and index.php.