I
I
IliaMal2020-11-13 11:18:47
PHP
IliaMal, 2020-11-13 11:18:47

I am doing a 301 redirect, but in the console 302. Why is that?

Made a redirect from a non-existent section to the desired section as follows:

header("HTTPS/1.1 301 Moved Permanently");
    header("Location:  /catalog/platya");
    exit();


The problem is that the /catalog/platya page in the console shows that there was a 302 redirect.
Seoshniki swear.

Why is that? How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2020-11-13
@IliaMal

header("Location:  /catalog/platya", true, 301);
exit;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question