V
V
Vlad2016-03-18 15:54:31
PHP
Vlad, 2016-03-18 15:54:31

Why does Datalife do 301 redirects?

Here is an example of a deleted article, I want it to give a 404 error when opened: multmult.com/342-mama-barboskiny.html
in show.full php wrote:

if( ! $news_found ) {
@header("HTTP/1.0 404 Not Found");
@header("Status: 404 Not Found");
die("Данная ссылка неправильная или страница была удалена.");
}

If you check the server response, then it gives 301 code first, and only then 404: www.bertal.ru/index.php?a2567217/multmult.com/342-...
How to make it immediately give 404 error??? I can't figure out where the 301 comes from..

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question