--- path_redirect.module	2009-10-01 22:01:33.000000000 +0000
+++ path_redirect.module	2009-10-01 21:56:57.000000000 +0000
@@ -173,8 +173,9 @@ function _path_redirect_check() {
     //$sort[] = 'path_query DESC';
   }
   else {
-    $where[] = "path = '%s'";
+    $where[] = "(path = '%s' OR (path like '%%*' AND '%s' REGEXP path))";
     $args[':path'] = $_GET['q'];
+    $args[':path_reg'] = $_GET['q'];
     //$where[] = "path_query = ''";
   }
 
@@ -207,6 +208,11 @@ function _path_redirect_check() {
     else {
       // Perform the redirect.
       unset($_REQUEST['destination']);
+      
+      if ($len = strpos($r->path, '*')) {     
+        $r->redirect = str_replace('*', substr($_GET['q'], $len), $r->redirect);
+      }
+      
       drupal_goto($r->redirect, $r->query, $r->fragment, $r->type);
     }
   }
