diff --git a/search404.module b/search404.module
index dee241e..696628b 100644
--- a/search404.module
+++ b/search404.module
@@ -147,6 +147,14 @@ function search404_page() {
         }
         search404_goto('search/google/' . $keys);
       }
+      elseif(variable_get('search404_do_custom_search', FALSE)) {
+        if (!variable_get('search404_disable_error_message', FALSE)) {
+          drupal_set_message(t('The page you requested does not exist. For your convenience, a search was performed using the query %keys.', array('%keys' => check_plain($keys))), 'error');
+        }
+        $custom_search_path = variable_get('search404_do_custom_search_path', 'search/@keys');
+        $custom_search_path = str_replace('@keys', $keys, $custom_search_path);
+        search404_goto($custom_search_path);
+      }
       else {
         // Called for apache solr, lucene, xapian and core search.
         $results = search_data($keys, $type_search);
@@ -241,6 +249,21 @@ function search404_settings() {
     '#attributes' => module_exists('search_by_page') ? array()  : array('disabled' => 'disabled'),
     '#default_value' => variable_get('search404_do_search_by_page', FALSE),
   );
+
+  // Custom search path implementation
+  $form['search404_do_custom_search'] = array(
+    '#type' => 'checkbox',
+    '#title' => t('Do a "Search" with custom path instead of a Drupal Search.'),
+    '#description' => t('Can be used to open a view with path parameter'),
+    '#default_value' => variable_get('search404_do_custom_search', FALSE),
+  );
+  $form['search404_do_custom_search_path'] = array(
+    '#type' => 'textfield',
+    '#title' => t('Custom search path'),
+    '#description' => t('The custom search path: example: myownsearch/@keys or myownsearch?txt_s=@keys'),
+    '#default_value' => variable_get('search404_do_custom_search_path', 'search/@keys'),
+  );
+
   // Added for having a 301 redirect instead of the standard 302 (offered by the drupal_goto).
   // TODO: jump to search pages should still return 404 and not 301 or 302 for searches other
   // than Core, Apache Solr, Lucene and Xapian. Can this even be done? Meta refresh?
