Created
March 13, 2015 09:46
-
-
Save dmacompton/48a90ccaaf596d5f97ee to your computer and use it in GitHub Desktop.
404
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($_SERVER['REQUEST_URI'] == '/women/majkifutbolki/288/') { | |
header("HTTP/1.0 404 Not Found"); | |
header("HTTP/1.1 404 Not Found"); | |
header("Status: 404 Not Found"); | |
// $this->redirect('404.php'); | |
$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found'); | |
//перенаправляем на страницу 404 | |
return $this->forward('error/not_found'); | |
} |
if ($_SERVER['REQUEST_URI'] == '/women/majkifutbolki/288/') {
header("HTTP/1.0 404 Not Found");
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
// $this->redirect('404.php');
$this->response->addHeader($this->request->server['SERVER_PROTOCOL'] . '/1.1 404 Not Found');
//перенаправляем на страницу 404
return $this->forward('error/not_found');
}
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
if ($_SERVER['REQUEST_URI'] == '/women/majkifutbolki/288/') {
header("HTTP/1.0 404 Not Found");
header("HTTP/1.1 404 Not Found");
header("Status: 404 Not Found");
// $this->redirect('404.php');
//перенаправляем на страницу 404
return $this->forward('error/not_found');
}