diff --git a/services/RedirectmanagerService.php b/services/RedirectmanagerService.php index 1e1ff3f..8d08c97 100644 --- a/services/RedirectmanagerService.php +++ b/services/RedirectmanagerService.php @@ -37,7 +37,7 @@ public function processRedirect($uri) // Regex / wildcard match if(preg_match("/^#(.+)#$/", $record['uri'], $matches)){ // no-op: all set to use the regex - }elseif(strpos($record['uri'], "*")){ + }else{ // not necessary to replace / with \/ here, but no harm to it either $record['uri'] = "#^".str_replace(array("*","/"), array("(.*)", "\/"), $record['uri']).'#'; }