Added configuration HTTP STATUS codes
This commit is contained in:
parent
b900b38740
commit
9b60e759c9
@ -46,7 +46,7 @@ class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 {
|
|||||||
|
|
||||||
// Process our redirection options
|
// Process our redirection options
|
||||||
if (preg_match('/^http[s]?:\/\//',$ro->redirect)) {
|
if (preg_match('/^http[s]?:\/\//',$ro->redirect)) {
|
||||||
$response->status(302);
|
$response->status($ro->http_status ? $ro->http_status : 302);
|
||||||
$response->headers('Location',$ro->redirect);
|
$response->headers('Location',$ro->redirect);
|
||||||
|
|
||||||
} elseif (preg_match('/^file:\/\/(.*)$/',$ro->redirect,$matches) AND file_exists($matches[1])) {
|
} elseif (preg_match('/^file:\/\/(.*)$/',$ro->redirect,$matches) AND file_exists($matches[1])) {
|
||||||
|
Reference in New Issue
Block a user