N
N
Nonprogrammer2014-10-24 18:04:58
PHP
Nonprogrammer, 2014-10-24 18:04:58

Why is the redirect not working on my site?

Wrote the site smorch.idhost.kz. There, in the main page after authorizations, header("Location: ./"); should have been earned. and the same page should open. But it does not work on hosting. On the local server, Denver, it works fine. During authorizations, the site must connect to the database. Maybe this is the whole point, I just don’t understand, before, if I remember correctly, I worked. For authorizations, you can use these data: group: 9, password: 9. Registration does not work in the same way.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Sydorenko, 2014-10-24
@c_pro_lang

It seems in header("Location: ./"); extra point
try
header("Location: /");
which would translate to the root of the site, but
header("Location: smorch.idhost.kz");

V
Vasily Nezhalkin, 2014-10-24
@vasyanezalkin

Ask the host

T
Terminaft, 2014-10-25
@Terminaft

Maybe you are outputting data to html before this header is sent?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question