diff --git a/application/classes/HTTP/Exception/404.php b/application/classes/HTTP/Exception/404.php index 0f976f2..c2f9941 100644 --- a/application/classes/HTTP/Exception/404.php +++ b/application/classes/HTTP/Exception/404.php @@ -46,6 +46,9 @@ class HTTP_Exception_404 extends Kohana_HTTP_Exception_404 { // Process our redirection options if (preg_match('/^http[s]?:\/\//',$ro->redirect)) { + if ($ro->http_status == 300) + $response->body(View::factory('300')->set('redir',$ro->redirect)); + $response->status($ro->http_status ? $ro->http_status : 302); $response->headers('Location',$ro->redirect); diff --git a/application/views/300.php b/application/views/300.php new file mode 100644 index 0000000..1041d23 --- /dev/null +++ b/application/views/300.php @@ -0,0 +1,13 @@ + + + + Not Here Anymore + + + + + It's not here anymore - try + + diff --git a/application/views/redirection/new.php b/application/views/redirection/new.php index 2ebfabb..307b702 100644 --- a/application/views/redirection/new.php +++ b/application/views/redirection/new.php @@ -3,7 +3,7 @@ Create New Short Cut @@ -15,4 +15,8 @@ To point to which URL? +
+
+ This domain may be for sale! +