Skip to content

Instantly share code, notes, and snippets.

@dmacompton
Created March 13, 2015 09:46
Show Gist options
  • Save dmacompton/48a90ccaaf596d5f97ee to your computer and use it in GitHub Desktop.
Save dmacompton/48a90ccaaf596d5f97ee to your computer and use it in GitHub Desktop.
404
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');
}
@haity
Copy link

haity commented Aug 11, 2017

#

@lmaoandrej
Copy link

Oce skin

@OsthirBoyNiloy
Copy link

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');
}

@OsthirBoyNiloy
Copy link

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